Categories
web server

Apache 404

1. 404.php

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>404</title>
    <link rel="icon" href="/favicon.png" type="image/png"/>
    <link rel="apple-touch-icon" href="/favicon.png"/>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="robots" content="noindex,nofollow">
</head>
<body
style="margin:0; padding:0; height:100%; width:100%; background:#EAE9E7 url(/images/404.jpg) no-repeat fixed 50% 50%; background-size: contain;">
<div style="width:100%; height:100%; position:fixed; left:0; top:0; overflow:hidden;" onclick='window.location.replace("/index.php")'></div>
</body>
</html>

2. .htaccess

ErrorDocument 404 /404.php

3. httpd.conf

<Directory "/srv/http/projekat">
    AllowOverride All
</Directory>

Leave a Reply

Your email address will not be published. Required fields are marked *