Re: Help, please... Is there such an .htaccess URL option ?

From: those who know me have no need of my name (not-a-real-address@usa.net)
Date: 12/15/02


From: those who know me have no need of my name <not-a-real-address@usa.net>
Date: 15 Dec 2002 12:51:17 GMT

in comp.security.unix i read:
>Mark246@email.com (Mark) writes:

>> On Unix, Apache v 1.3.26, I've set up a password-protected directory
>> using .htaccess & .htpasswd.
>>
>> When someone goes there and that "Please Enter your UserName &
>> Password" screen appears, I DO NOT want it to display "Site:
>> www.ThisIsTheDomain.com". Instead, I want it to say "Site:
>> www.ThatDomain.com". Is there a way to change that?
>
>I think that "Site: www.ThisIsTheDomain.com" represents the server's
>idea of its official DNS name.

most likely this is true and `usecanonicalname' is set to `on'.

# UseCanonicalName: (new for 1.3) With this setting turned on, whenever
# Apache needs to construct a self-referencing URL (a URL that refers back
# to the server the response is coming from) it will use ServerName and
# Port to form a "canonical" name. With this setting off, Apache will
# use the hostname:port that the client supplied, when possible. This
# also affects SERVER_NAME and SERVER_PORT in CGI scripts.

>If you don't have access to the httpd.conf file, you'll have to ask
>your system administrator for help. ServerName and VirtualHost
>directives can't be used in .htaccess files.

ditto for usecanonicalname.

-- 
bringing you boring signatures for 17 years