Re: Help, please... Is there such an .htaccess URL option ?
From: Matti Juhani Kurkela (Matti.Kurkela@welho.com)
Date: 12/15/02
- Next message: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Previous message: Mark: "Re: Help, please... Is there such an .htaccess URL option ?"
- In reply to: Mark: "Help, please... Is there such an .htaccess URL option ?"
- Next in thread: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Reply: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Matti Juhani Kurkela <Matti.Kurkela@welho.com> Date: 15 Dec 2002 11:46:31 +0200
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. Changing that just for the password
dialog would be something like forgery, and that's not nice: so the
Apache does not allow you to do that easily.
Instead, you should focus on the reason why the server thinks its name
is "www.ThisIsTheDomain.com" instead of the other one.
Apache is a very complex beast in this regard: one Apache server can
handle multiple DNS names and multiple IP addresses; and it can serve
different content depending on by what name or address the client uses.
(That's defined mainly by VirtualHost directives in the config file:
do you have any? If you do, check that the VirtualHost that applies to
your situation has a "ServerName www.ThatDomain.com" directive.)
Alternatively, Apache can serve the same content on all the IP
addresses and hostnames the server can be reached. I think this is the
default setting in most new Apache installations. If you do not set
ServerName in the configuration file in this case, Apache
asks the operating system for the official hostname (the OS can
look it up from the DNS or do something else entirely).
In this case, you should ensure that you have "ServerName www.ThatDomain.com"
in the server's main configuration file (httpd.conf).
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.
-- Matti.Kurkela@welho.com
- Next message: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Previous message: Mark: "Re: Help, please... Is there such an .htaccess URL option ?"
- In reply to: Mark: "Help, please... Is there such an .htaccess URL option ?"
- Next in thread: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Reply: those who know me have no need of my name: "Re: Help, please... Is there such an .htaccess URL option ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|