HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Disable ErrorDocument 404? (http://www.howtoforge.com/forums/showthread.php?t=20389)

Pulsaris 13th February 2008 17:30

Disable ErrorDocument 404?
 
Hi there :)

I've been using ISPconfig for awhile now on different systems, using different versions, etcetera. Recently I've come across a minor problem with a separate thing. This separate thing requires that I disable the Error 404 Document which is presented using ISPconfig default setup.

I have searched around and have had no luck finding a well defined, effective, and easy way to do this. I do however have a few processes prepared to try using basic logic.

I have gone through the usual configuration files and have a good understanding what is happening. I see that each web (web, web2, web3, etcetra) has its' own ErrorDocument references in Vhosts_ispconfig.conf, and its' own "error" directory which contains the files. If this or other files are re-generated upon modification of a web in the ISPconfig control panel or otherwise I am uncertain.

My question is two parts.
Part one: Is there an easy way to "disable" the 404 Error documents universally? Part two: If there is not a "simple" method, and I modify the configuration (simple modification example: comment them out), will it "re-write" itself when I add another site to the control panel and re-include the ErrorDocument references?

I appreciate your help, I hope it is an easy question.

Thank you :)

till 14th February 2008 12:36

ISPConfig will overwrite your changes, if you comment them out in the Vhosts_ispconfig.conf.

If you want to remove the error document part written by ISPConfig, you may remove the line {ERROR} from the file /root/ispconfig/isp/conf/vhost.conf.master


All times are GMT +2. The time now is 04:42.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.