infiltrator
Verified User
- Joined
- Jun 8, 2006
- Messages
- 41
Hi,
I cant find how i can set the config file of apache so , that its loads custom made error pages for the whole server incl. all domains / users installed on it.
i changed the default http.conf into this:
ErrorDocument 400 /home/admin/domains/foxco.be/public_html/400.shtml
ErrorDocument 401 /home/admin/domains/foxco.be/public_html/401.shtml
ErrorDocument 403 /home/admin/domains/foxco.be/public_html/403.shtml
ErrorDocument 404 /home/admin/domains/foxco.be/public_html/404.shtml
ErrorDocument 500 /home/admin/domains/foxco.be/public_html/500.shtml
I found out that if a change the directory in the config file, it also ads the domain root dir in the end form the domain thats generating the error
--> if i surf to www.foxcom.be/dogy i must get a error 440
and my eror log shows this :
/home/admin/domains/foxco.be/public_html/home/admin/domains/foxco.be/public_html/404.shtml
When i surf to www.fake.be/fake
i problebly get
/home/admin/domains/fake.be/public_html/home/admin/domains/foxco.be/public_html/404.shtml
How can i set the config file pointing at the correct custom error page and have it for the whole server?So it uses the same custom made error page for every domain thats on that server?
I cant find how i can set the config file of apache so , that its loads custom made error pages for the whole server incl. all domains / users installed on it.
i changed the default http.conf into this:
ErrorDocument 400 /home/admin/domains/foxco.be/public_html/400.shtml
ErrorDocument 401 /home/admin/domains/foxco.be/public_html/401.shtml
ErrorDocument 403 /home/admin/domains/foxco.be/public_html/403.shtml
ErrorDocument 404 /home/admin/domains/foxco.be/public_html/404.shtml
ErrorDocument 500 /home/admin/domains/foxco.be/public_html/500.shtml
I found out that if a change the directory in the config file, it also ads the domain root dir in the end form the domain thats generating the error
--> if i surf to www.foxcom.be/dogy i must get a error 440
and my eror log shows this :
/home/admin/domains/foxco.be/public_html/home/admin/domains/foxco.be/public_html/404.shtml
When i surf to www.fake.be/fake
i problebly get
/home/admin/domains/fake.be/public_html/home/admin/domains/foxco.be/public_html/404.shtml
How can i set the config file pointing at the correct custom error page and have it for the whole server?So it uses the same custom made error page for every domain thats on that server?