httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Reverse Proxy Apache using two ports
Date Tue, 12 Oct 2004 23:25:47 GMT
On Tue, 12 Oct 2004 17:16:33 -0500, Deepa Rangarajan
<deepa_rr@hotmail.com> wrote:
> I am running Apache as a reverse proxy server. I am using default ports - 80
> and 443 for http and https respectively. The http/https requests are proxied
> to another Apache server, which is also listening on two different ports -
> 9080 and 9443 for http and https respectively.
> 
>   I need all my http requests to be forwarded to port 9080 and https
> requests to port 9443.
> 
> Currently my directive reads
> 
> ProxyPass /jsp/support/ http://172.22.166.38:9080/
> ProxyPass /  http://172.22.166.38:9080/
> 
> I need to include as follows for https requests
> 
> ProxyPass /jsp/support/ https://172.22.166.38:9443/
> ProxyPass /  https://172.22.166.38:9443/
> 
> But how do I distinguish the incoming request to the reverse proxy server as
> http or https.

You should have a <VirtualHost> section for each of the server (:80
and :443).  Place the appropriate ProxyPass inside the <VirtualHost>
section.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message