A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Other Java Products and Servers
How to use error folder of Apache instead of htdocs folder to view error page?
Joined: Mar 15, 2013
May 14, 2013 08:48:16
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.
Joined: Mar 24, 2008
Jun 09, 2013 00:53:36
Have you checked the instructions listed
SCJP 5 | SCWCD 5
How to ask questions
I agree. Here's the link:
subject: How to use error folder of Apache instead of htdocs folder to view error page?
Apache 2 and Tomcat 7 on Ubuntu 10.04 in VirtualBox 4.06xxx
Tomcat + Apache first time
tomcat6 and apache
How to replicate page 404 in Tomcat 7.0 (running in Eclipse)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014