Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ramin Esfandiari
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the instructions listed here?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic