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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3775

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?
 
Similar Threads
Apache 2 and Tomcat 7 on Ubuntu 10.04 in VirtualBox 4.06xxx
Tomcat + Apache first time
window.open() problem
How to replicate page 404 in Tomcat 7.0 (running in Eclipse)
tomcat6 and apache