Testing an Apache config.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Testing an Apache config.

Post by onion2k »

I've added some custom ErrorDocument stuff to Apache but I'm a bit stumped about how to test it. I can test my custom 404 handler easily, but what about 403 and 500? Is there a standard way to test that sort of thing?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

You can easily make them appear:
error 500 - make a none executable script in your cgi-bin and browse to it;
error 403 - try to browse your cgi-bin directory - it should have directory indexing forbidden;
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Cool, they both worked.

Well, I mean didn't work.

Err... you know what I mean.
Post Reply