i am trying to setup apache environment on two different machines (service1 and service2)
and service1 machine should filter out requests (coming from browser) and forward them to other machine service2.
the ssl certificate part should be handled by the service1.
like this :
1. apache on service1 machine recieves http and https requests on port 80 and 8443 respectively.The virtual hosts defined on this machine are :
configuration in httpd.conf
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests on
ProxyPass /
http://192.168.1.111:80/ ProxyPassReverse /
http://192.168.1.111:80/ ServerName hostname.example.com
</VirtualHost>
configuration in ssl.conf :
<VirtualHost *:443>
ProxyPass /
http://192.168.1.111:443/ ProxyPassReverse /
http://192.168.1.111:443/ ProxyRequests on
ProxyPreserveHost On
SSLCertificateFile /opt/lampp/etc/ssl/ssl.crt
/server.cr
t
SSLCertificateKeyFile /opt/lampp/etc/ssl/ssl.key
/server.ke
y
</VirtualHost>
Apache running on service2 should receive requests from service1 again on port 80 and 443.
but these requests should be mapped to respective services running on tomcat server on machine service2.
for example
:443 to <servername>:8443/app1
:80 to <servername>:8080/app2
:80 to <servername>:8080/app3
:80/openid/ to <servername>:8001/openidse
rver/ (openid is other server running on port 8001 on service2)
configuration in httpd.conf on service2 is :
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests on
ProxyPass /
http://localhost:8080/ ProxyPassReverse /
http://localhost:8080/ ServerName hostname.example.com
</VirtualHost>
<VirtualHost *:443>
LogLevel warn
ProxyRequests on
ProxyPreserveHost On
ProxyPass /
https://localhost:8443/ ProxyPassReverse /
https://localhost:8443/</VirtualHost>
Now http requests on port 80 is forwarding properly but i'm not recieving https (port 443) requests from service1 to service2.
plz help how and what configuration is required so that service1 handles ssl certificate and then forwards requests to service2 which will entertain the requests without worrying about the security.
Thanks in advance,
Mohit Raj.
Start Free Trial