401 error page

Hi,
On my site, I'd like to redirect 401 errors to a specific page instead of the user getting the generic error page produced by Apache.
I already have the page built but am not sure where to change to tell Apache to serve this page when I get a 401.
many thanks,
Jonathan

1 XServe, 150 iMacs, 25 G4's, 10 G5's, Mac OS X (10.5.6)

Posted on May 28, 2009 9:21 AM

Reply
2 replies

May 31, 2009 10:50 PM in response to Jonathan Jackson1

Unfortunately, the server's smart about which error page it presents to it's users under given conditions.
The error files are located in /usr/share/httpd/error under OS X Server 10.5.
Notice though that they're named HTTP NOTFOUND.html.var (there's a var on the end of this example)
Not too many web browsers will deal with this nicely if you just up and change the contents of this file.

You have to go into your httpd.conf file in /etc/apache2 and edit the error section. It's kinda long in OS X server so you have to scroll down a bit. You'd then have to change the config to display your error page under your given conditions.

Hope this puts you in the right direction!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

401 error page

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.