RE: alias using Virtual host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

the config now looks like:

NameVirtualHost *:80

<VirtualHost *:80>
        ServerAlias MySecondAlias
        ProxyPass / http://localhost:8098/
        ProxyPassReverse / http://localhost:8098/
</VirtualHost>

Result:
http://MySecondAlias goes to the proper port
BUT, http://host is equivalent to http://MySecondAlias (While I expects it to go to apache on port 80)

Is there a way for apache to differentiate between these two?

thanks

--- On Mon, 27/4/09, Steffen Tronstad <sttr@xxxxxxxxxxxxxx> wrote:

> From: Steffen Tronstad <sttr@xxxxxxxxxxxxxx>
> Subject: RE:  alias using Virtual host
> To: users@xxxxxxxxxxxxxxxx
> Date: Monday, 27 April, 2009, 3:25 PM
> Use "ServerAlias MyServerAlias" in
> the other VirtualHost directive, instead of another
> ServeRName.
> 
> 
> -----Opprinnelig melding-----
> Fra: Melanie Pfefer [mailto:melanie_pfefer@xxxxxxxxxxx]
> 
> Sendt: 27. april 2009 14:21
> Til: users@xxxxxxxxxxxxxxxx
> Emne:  alias using Virtual host
> 
> 
> Hi
> 
> I have the main apache running on port 80.
> I built another configuration file to have another apache
> running on port 8094.
> 
> I can access both servers:
> 
> http://host

> http://host:8094

> 
> Now I want to have http://MySecondAlias to redirect to http://host:8094

> 
> I added MySecondAlias to DNS and I added these lines in the
> main apache config
> 
> NameVirtualHost *:80
> 
> <VirtualHost *:80>
>         ServerName MySecondAlias
>         ProxyPass / http://localhost:8094/

>         ProxyPassReverse / http://localhost:8094/

> </VirtualHost>
> 
> 
> Now http://host
> redirects to http://MySecondAlias and I do not want this.
> 
> How to fix this situation?
> 
> I.e 
> 
> Http://host goes
> to the default apache
> http://MySecondAlias goes to the 2nd apache running on
> 8094
> 
> any other alternative is also welcomed.
> 
> thanks
> 
> 
>       
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux