virtualhost of virtualhost

Hi
I have two server and one ip only. I have two websites, one server
for each.
If i set the proxypass from server A (hosting the first site) to
server B (hosting the second site). In server B apache, i cannot use
virtual host, because i pass the connection from server A to server B
like this:

<VirtualHost b.com>
ProxyPass / http://192.168.0.2
</VirtualHost>

!!! I used the IP to pass the webstie B connection, so in server B, i
cannot setup virtualhost from website B. So how to fix it?

thanks
from Peter (cmk128 [at] hotmail.com)
cmk128 [ Sa, 29 Dezember 2007 18:34 ] [ ID #1895704 ]

Re: virtualhost of virtualhost

Post removed (X-No-Archive: yes)
Notifier Deamon [ So, 30 Dezember 2007 08:35 ] [ ID #1896171 ]

Re: virtualhost of virtualhost

<cmk128 [at] hotmail.com> wrote in message
news:e27bfaa5-8ca0-45a2-9635-b57ad362df6a [at] s12g2000prg.google groups.com...
> Hi
> I have two server and one ip only. I have two websites, one server
> for each.
> If i set the proxypass from server A (hosting the first site) to
> server B (hosting the second site). In server B apache, i cannot use
> virtual host, because i pass the connection from server A to server B
> like this:
>
> <VirtualHost b.com>
> ProxyPass / http://192.168.0.2
> </VirtualHost>
>
> !!! I used the IP to pass the webstie B connection, so in server B, i
> cannot setup virtualhost from website B. So how to fix it?

What a waste of power.

<VirtualHost *:80>
ServerName a.com
ServerAlias www.a.com
DocumentRoot /var/www/a.com/html
<Directory "/var/www/a.com">
allow from all
Options +Indexes
AllowOverride All
</Direcotory>
<VirtualHost>

<VirtualHost *:80>
ServerName b.com
ServerAlias www.b.com
DocumentRoot /var/www/b.com/html
<Directory "/var/www/b.com">
allow from all
Options +Indexes
AllowOverride All
</Direcotory>
<VirtualHost>

Try reading up on VirtualHost in Apache documentation.

Aaron
Aaron Gray [ So, 30 Dezember 2007 15:05 ] [ ID #1896177 ]
Webserver » alt.apache.configuration » virtualhost of virtualhost

Vorheriges Thema: Can't view php
Nächstes Thema: Configuring HTTPS