Help - Search - Members - Calendar
Full Version: Custom 404, IP only
The Planet Forums > System Administration > General Support Questions
amp3dmoshpit
I have a server and currently just have IP only. I will be moving some domains over shortly. I have been unable to get the custom 404's working. My httpd.conf line is
ErrorDocument 404 /404.html
the Document Root is /var/www/html and in it is a 404.html file. I restarted httpd and I just get the white 404 page, not my custom page. Any suggestions?

I want it so when someone goes to http://my_ip/dir/filename if the file doesn't exist, they goto http://my_ip/404.html
paulius
You should have it inside your VirtualHost assignements. Example:


DocumentRoot /h/paulius
ServerName pajsadghus.com
ErrorDocument 404 /404.htm
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.