virtualhost of virtualhost

virtualhost of virtualhost

am 29.12.2007 18:34:47 von cmk128

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:


ProxyPass / http://192.168.0.2


!!! 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@hotmail.com)

Re: virtualhost of virtualhost

am 30.12.2007 08:35:13 von unknown

Post removed (X-No-Archive: yes)

Re: virtualhost of virtualhost

am 30.12.2007 15:05:28 von Aaron Gray

wrote in message
news:e27bfaa5-8ca0-45a2-9635-b57ad362df6a@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:
>
>
> ProxyPass / http://192.168.0.2
>

>
> !!! 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.


ServerName a.com
ServerAlias www.a.com
DocumentRoot /var/www/a.com/html

allow from all
Options +Indexes
AllowOverride All




ServerName b.com
ServerAlias www.b.com
DocumentRoot /var/www/b.com/html

allow from all
Options +Indexes
AllowOverride All



Try reading up on VirtualHost in Apache documentation.

Aaron