Apache mod_proxy Proxy Pass
Here's my situation:
If have only one public IP address. Internally I have three Apache servers running. Right now I have my firewall route port 80 to my webserver. I also have a mailserver running secure webmail on it, so I foward port 443 to it. My problem is now I want to be able to do ssl on my third websever. What I want to due is route port 443 to my third webserver and pass all mail requests to my mailserver. I'm using Apache2 and have mod_proxy installed. I've put 192.168.2.2 mail.mydomain.com in /etc/hosts I'm not sure if httpd.conf and ssl.conf are right so I've supplied them. Any help would be appreciated. httpd.conf (if I put 10.0.0.12:443 I get overlapping error) <VirtualHost 10.0.0.12> ServerName mail.mydomain.com ProxyPass / https://mail.mydomain:443/ ProxyPassReverse / https://mail.mydomain.com:443/ </VirtualHost> ssl.conf <VirtualHost 10.0.0.12:443> DocumentRoot "/domain/mydomain/htdocs/" ServerName ssl.mydomain.com:443 ServerAdmin webmaster@mydomain.com ErrorLog /domain/mydomain/logs/ssl_error_log TransferLog /domain/mydomain/logs/ssl_access_log blah blah blah </VirtualHost> It all works fine internally but ssl.mydomain is not passing to mail.mydomain |
All times are GMT -5. The time now is 05:16 AM. |