[thelist] Apache: Testing error pages

Anthony Baratta Anthony at Baratta.com
Tue Feb 17 17:24:19 CST 2004


At 02:34 PM 2/17/2004, Frank wrote:

>I've just finished setting up a bunch of error pages using .htaccess. I 
>can easily test a 404. How does one go about verifying that the 401, 403, 
>500 and 503's work. I'm sure there's got to be a better way then actually 
>breaking something, but if there's not, how do I go about this on my local 
>machine?

#    "401 Authorization Required",
Just setup a directory with a .htaccess setup to require Login. Cancel the 
login.

#    "403 Forbidden",
Change the permissions so that Apache can't read the directory, or remove 
the index file and do not allow directory browsing.

#    "500 Internal Server Error",
Make a quick and dirty "Yo, World" script - break it.




More information about the thelist mailing list