Just to clarify, this is how the conf files look now:

httpd.conf:

NameVirtualHost *:80

<VirtualHost *:80>

DocumentRoot /var/www/html/path/
ServerName url2.mydomain.com
ServerAlias url2.mydomain.com
</VirtualHost>

epages.conf:

<IfDefine PROXY>
<VirtualHost *:80>
ServerName url1.mydomain.com
ServerAlias url1.mydomain.com
<Location /epages/>
    <IfDefine LB>
        ProxyPass balancer://cluster/epages/
        ProxyPassReverse balancer://cluster/epages/
    </IfDefine>
    <IfDefine !LB>
        ProxyPass http://url1.mydomain.com:8008/epages/
        ProxyPassReverse http://url1.mydomain.com:8008/epages/
    </IfDefine>
</Location>
</VirtualHost>
</IfDefine>

________________________________
From: Tom Frost <fro5...@yahoo.com>
To: "users@httpd.apache.org" <users@httpd.apache.org> 
Sent: Thursday, 3 January 2013, 13:58
Subject: Re: [users@httpd] VirtualHost configuration not working as expected 
with ePages solution


Hi

I have changed both VirtualHost definitions to *:80 and NameVirtualHost has the 
same, however both whichever hostname I use I still get the same site. Does it 
matter that the VirtualHost definitions are in separate config files?

Thanks again


________________________________
From: Eric Covener <cove...@gmail.com>
To: users@httpd.apache.org; Tom Frost <fro5...@yahoo.com> 
Sent: Thursday, 3 January 2013, 12:02
Subject: Re: [users@httpd] VirtualHost configuration not working as expected 
with ePages solution

> <VirtualHost _default_:80>
> <VirtualHost
my.ip.add.res:80>

These have to be the identicalvalues for name-based vhosts to treat
them as part of a set.

If you don't care what IP address is used, use *:80 for both. If you
do care, use t my.ip.add.res:80 for both.  NameVirtualHost should have
again an identical argument.

--
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to