httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohamed Badri <>
Subject [users@httpd] Virtual hosts + Dynamic Vhosts + Mod_proxy
Date Mon, 12 Sep 2005 10:09:49 GMT

I'm trying to configure apache to serve web-sites using dynamic  
vhosts and also intranets using mod_proxy,
this is a description about my config :

Srv1 : A web-server  who hosts  4 web-sites
Srv2 : A web-servers who hosts 3 web-sites

Internal users ( from ) and external users ( from  
internet ) have only access to Srv1, And Srv1 had to serve
internal web-sites and also domains hosted by Srv2.

So all request comes to Srv1, In this server I use dynamic-vhosts with :

    VirtualDocumentRoot   /ot/www/hosts/%0/docs
    VirtualScriptAlias            /ot/www/hosts/%0/cgi-bin

For accessing Srv2 from Srv1, I'm trying to configure mod_proxy with  
virtual hosts, but it doesn't work :
In the following configuration , the internal ip of Srv1 is, Srv2 is at
Internet Adress is A.B.C.D, and is hosted by Srv2. This is the 2 urls I  
need to redirect via mod_proxy to

For now, Apache uses only the first Virtualhost, even if I put section first.

Do you see something wrong ? Or it's not the right solution for this ?
thanks for any help.

UseCanonicalName Off
NameVirtualHost  A.B.C.D

<VirtualHost A.B.C.D>
   VirtualDocumentRoot /ot/www/hosts/%0/docs
   VirtualScriptAlias         /ot/www/hosts/%0/cgi-bin
   CustomLog                   logs/vhosts_access_log vcommon
   ErrorLog                        logs/vhosts_error_log

    ProxyRequests            Off
    ProxyPass                    /
    ProxyPassReverse     /
    CustomLog                  logs/proxy_access_log vcommon
    ErrorLog                       logs/proxy_error_log

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message