how to dispatch subdomain to another machine

Discussion in 'Apache' started by elim, Dec 14, 2009.

  1. #1
    I have a win2003 server with apache as a front machine which works fine.

    Then I like to have another machine in the same lan to be a server for a subdomain that is running some web application which cannot handle well by the front machine. So I did the following:

    In the front machine's apache config file, a VirtualHost is configured like

    <VirtualHost *:80>
    ServerName wo.mydomain.com
    ProxyPreserveHost On
    ProxyPass / http://192.168.2.3
    ProxyPassReverse /http://192.168.2.3
    </VirtualHost>

    In the back machine's apache config file, a VirtualHost is configured like

    <VirtualHost *:80>
    DocumentRoot F:/Apache/htdocs
    ServerName wo.mydomain.com
    ErrorLog logs/wo-error_log
    CustomLog logs/wo-access_log common
    </VirtualHost>

    Also a added the following line to the hosts file in system32\drivers\etc

    127.0.0.1 wo.mydomain.com

    ===============================
    But that didn't work.

    Anyone can point out what i'm missing? Thanks a lot
     
    elim, Dec 14, 2009 IP