proxy as proxy

Discussion in 'Server Operation' started by carlainz, Dec 7, 2006.

  1. carlainz

    carlainz New Member

    hello,

    i'n my FC5 x64 i have apache 2.2 with name-based virtual host (2 domains site) and all work fine .
    in ahother box i have tomcat on port 8080 whit 1 site .
    now i have to set up the tomcat site in apache , i think i have to set apache as a proxy.

    i have try this configuration :

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/domain1
    ServerName domain1.com
    ServerAlias domain1.com www.domain1.com
    ErrorLog logs/domain1.com-error_log
    CustomLog logs/domain1.com-access_log combined
    </VirtualHost>

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/domain2
    ServerName domain2.com
    ServerAlias domain2.com www.domain2.com
    ErrorLog logs/domain2.com-error_log
    CustomLog logs/domain2.com-access_log combined
    </VirtualHost>

    <VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName domain3.com
    ServerAlias domain3.com www.domain3.com
    ProxyPass /domain3/ http://192.168.100.11:8080/domain3
    ProxyPassReverse /domain3/ http://192.168.100.11:8080/domain3
    ErrorLog logs/domain3.com-error_log
    CustomLog logs/domain3.com-access_log combined
    </VirtualHost>


    but doesn't work , when i add the 3 virtualhost (domain3) .
    in my loadmodule section i have this for the proxy

    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so

    and

    #<IfModule mod_proxy.c>
    ProxyRequests Off

    thanks
    cheers
     
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page