|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I am having a problem with defining custom error pages in Apache.
I added the following line to my httpd.conf: ErrorDocument 404 /main/error404.jsp but nothing happens. The thing is, that if I give the full URL, like: ErrorDocument 404 http://www.mypage.com/main/error404.jsp then it works. I thought that if a local URL, like the first one, is used - then it should be relative to the DocumentRoot (which is set in httpd.conf). Well, it is but it simply does not work! What am I doing wrong??? Thanks in advance. Gauti. gauti@salt.is |
|
#2
|
||||
|
||||
|
I think the best way to do custom error pages is to define them in a .htaccess file. I did that and it worked fine.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Custom error pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|