aspose file tools*
The moose likes Other Java Products and Servers and the fly likes How to use error folder of Apache instead of htdocs folder to view error page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "How to use error folder of Apache instead of htdocs folder to view error page?" Watch "How to use error folder of Apache instead of htdocs folder to view error page?" New topic
Author

How to use error folder of Apache instead of htdocs folder to view error page?

Ramin Esfandiari
Greenhorn

Joined: Mar 15, 2013
Posts: 16

Hi

I have a folder(PageNotFound) that contains a html, a css and a png file which together form my custom page not found page.

I have placed this folder in Apache2/error and have the following in my httpd.conf

ErrorDocument 404 /error/PageNotFound/page404.html

However when run, Apache sticks a htdocs in the url looking for the page in /Apache2/htdocs/error/PageNotFound/page404.html

How can I change this to search tht error folder instead?

Also the css and the png don't seem to be picked when I put my files in htdocs.

Thanks



Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3837

Have you checked the instructions listed here?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use error folder of Apache instead of htdocs folder to view error page?