Advertisement

09.02.2006 at 08:49AM PDT, ID: 21976321
[x]
Attachment Details

urgent : problem with forwarding https requests in apache.

Asked by mohitraj in Apache Web Server

Tags: https, lampp, proxypreservehost

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.crt
     SSLCertificateKeyFile /opt/lampp/etc/ssl/ssl.key/server.key
</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/openidserver/   (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
[+][-]09.02.2006 at 10:06AM PDT, ID: 17442813

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2006 at 10:08AM PDT, ID: 17442817

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2006 at 03:56AM PDT, ID: 17444997

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2006 at 10:51PM PDT, ID: 17447767

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.03.2006 at 10:52PM PDT, ID: 17447771

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.03.2006 at 11:58PM PDT, ID: 17447912

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2006 at 12:14AM PDT, ID: 17447955

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.04.2006 at 12:19AM PDT, ID: 17447974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2006 at 11:22PM PDT, ID: 17453637

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 12:05AM PDT, ID: 17453784

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 12:32AM PDT, ID: 17453867

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 12:39AM PDT, ID: 17453881

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 01:02AM PDT, ID: 17453952

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 01:38AM PDT, ID: 17454091

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.10.2006 at 07:20AM PDT, ID: 17699013

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.11.2006 at 08:03PM PDT, ID: 17712568

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Web Server
Tags: https, lampp, proxypreservehost
Sign Up Now!
Solution Provided By: muktajindal
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32