I am trying to proxy http://dls.domain.net traffic to 
http://private.ip/path/to/page (a different server on our network) but this is 
not working (i get a bad gateway error from the outside (WAN) and the 
connection times out on the inside(LAN)). Here is the vhost:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName dls.domain.net

    ProxyPass /    http://dls.domain.net/
    ProxyPassReverse /    http://192.168.123.4/welcome/client-software.html

    # if not specified, the global error log is used
    ErrorLog /var/log/apache2/dls.domain.net-error_log
    CustomLog /var/log/apache2/dls.domain.net-access_log combined

</VirtualHost>

I have both public and private DNS records for dls.domain.net and firewall is 
config'd to pass http traffic to the correct server. I can ping dls.domain.net 
from the LAN. The access and error logs are empty, as if i am not even reaching 
the server. I have cleared/flushed DNS on my laptop and the server. Http/apache 
is listening on port 80 on 192.168.123.4 server. What am i missing?

EDIT
Now i am seeing this in the error log:

[Sat Nov 17 16:11:08 2012] [error] ap_proxy_connect_backend disabling worker 
for (dls.domain.net)
[Sat Nov 17 16:11:08 2012] [error] (110)Connection timed out: proxy: HTTP: 
attempt to connect to 192.168.123.3:80 (dls.domain.net) failed
[Sat Nov 17 16:11:20 2012] [error] [client 192.168.123.3] (104)Connection reset 
by peer: proxy: error reading status line from remote server dls.teknerds.net
[Sat Nov 17 16:11:20 2012] [error] [client 192.168.123.3] proxy: Error reading 
from remote server returned by /error/HTTP_BAD_GATEWAY.html.var

/EDIT

2nd EDIT
All the sites stop responding when i add the vhost above? I can rename it and 
restart apache and all proxies and sites start working again. Is there a limit 
to the number of vhost/proxies you can have?

/2nd EDIT

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to