Apache Server configuration support - AuthType prompt control

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2005 > AuthType prompt control





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author AuthType prompt control
Jben

2005-12-22, 3:00 am

I'll put this as well as I can.
I have my webserver root as - let's say:
/usr/webserver

In my httpd.conf I have AuthType Basic protecting directory:
/usr/webserver/main

I also have custom ErrorDocuments at:
/usr/webserver/errdocs

If the user cannot authenticate, Apache acts as though my server root is
/usr/webserver/main
I have tried to redirect the ErrorDocument explicitly using:
http://myhost.com/errdocs/401.html
Apache attempts to access the files in errdocs, but off of the /main
root! So each file in errdocs/ appears as though it's based off of main
(ex: /main/img.gif, /main/401.html, etc.) and therefore puts up a prompt
for each file.

If a user can't authenticate against /usr/webserver/main why does Apache
get stuck looking at /usr/webserver/main?

Thanks,
J
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com