In Apache to serve custom error pages I did something like so: <IfModule mod_alias.c> Alias /foo /web/share/error <Directory /web/share/error> Order allow,deny Allow from all Options -Indexes </Directory> </IfModule> ErrorDocument 404 /foo/404.html ... The server root would be something like /web/www. So if someone typed http://website.by Khadgar - Migration from Other Servers