Apache 404 still prevails...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
maxwellb
Forum Members
Forum Members
Posts: 14
Joined: Fri Jun 01, 2007 3:09 am

Apache 404 still prevails...

Post by maxwellb »

Hi,

I set up a custom 404 message in "Global Settings" and for some reason the generic Apache 404 still always comes up when a page is not found...is anyone else having this problem? Is there something I have to do to Apache to get this to work?


Thanks for the help!
Max
Pierre M.

Re: Apache 404 still prevails...

Post by Pierre M. »

Hello,

May be the ErrorDocument directive of your Apache installation is too strong ("too root" context). See your httpd.conf and .htaccess if any.
If you are hosting only CMSms, you may disable the Apache directive to let CMSms' mechanism work as expected.

Are you hosting something else ? Do you have access to httpd.conf ? Are there any .htaccess ?

Pierre M.
maxwellb
Forum Members
Forum Members
Posts: 14
Joined: Fri Jun 01, 2007 3:09 am

Re: Apache 404 still prevails...

Post by maxwellb »

Hi,

Thanks for your resposnse! Yes, I am hosting more than one "virtual server" on this webserver. I am pretty much a newbie at Apache and linux in general...I think I have an .htaccess. I know I have an htttpd.conf.

I will try looking in those files for "ErrorDoccument" directive. How do I make it "less root?" I have multiple CMSMS installations and I would like each one to have its own custom 404 error.


Thanks for your assistance,
Max
Pierre M.

Re: Apache 404 still prevails...

Post by Pierre M. »

You are owning the hosting ? You can modify httpd.conf ? And it is under Linux ? Good news !

May be one way to solve your problem is to remove the global ErrorDocument 404 directive and place such directives only inside the virtualhosts you want (so not the CMSms ones) (and may be only via .htaccess files).

Beware standard sample Apache httpd.conf config files are too much asymetric (for my taste) : there is one "default" "main" server and virtualhosts for N-1 domains ; I'd rather one "fake" tech domain and N virtualhosts.

Hope it helps. Have fun !

Pierre M.
Post Reply

Return to “CMSMS Core”