Change the path/filename of the apache error pages

vissie

New member
Joined
Feb 13, 2014
Messages
2
On the DirectAdmin control panel you can change the content of the apache error pages (the shtml files). I really need to change 404.shtml into /error/404/, how can I do this?
 
Hello,

It is possible to change it to something like this (check custom httpd functionality at admin level in directadmin):

Code:
[COLOR=#000000][FONT=Courier New]ErrorDocument 500 http://foo.example.com/cgi-bin/tester[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New]ErrorDocument 404 /cgi-bin/bad_urls.pl[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New]ErrorDocument 401 /subscription_info.html[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New]ErrorDocument 403 "Sorry can't allow you access today"
[/FONT][/COLOR]

Link: http://httpd.apache.org/docs/2.2/mod/core.html#errordocument
 
Thanks for replying,
I already tried the ErrorDocument thingy, but that didn't work for me and later I found out that it was because of something with permissions for the /error/ directory and Apache, even if that folder doesn't exist.
 
Back
Top