httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible" <>
Subject [users@httpd] mod_proxy, ssl and detecting secure requests on the server side
Date Tue, 15 Apr 2008 17:50:13 GMT
I've setup mod_proxy and mod_ssl successfully and have Tomcat
configured to run on 8080 and 8443 (for SSL).

If I proxy requests from /jobs -> http://localhost:8080/jobs,
request.isSecure() will returns false on the server side if I request
https://localhost/jobs. If I change it to /jobs ->
https://localhost:8443/jobs, request.isSecure() will return true.

I'd like to figure out a way to have http://localhost/jobs go to
http://localhost:8080/jobs and https://localhost/jobs to go
http://localhost:8443/jobs. Even better, it'd be nice to configure
things in a way so request.isSecure() returns the value based on the
originally requested URL, not on the proxied URL. Configuration like
the following would be ideal:

ProxyPass    http://*/jobs    http://*:8080/jobs
ProxyPass    https://*/jobs   https://*:8443/jobs

Is this possible in mod_proxy or is there a better connector mechanism
that makes this possible?



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message