Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ProxyPass with redirect to https on other port

Status
Not open for further replies.

tsltsl

Technical User
Jan 17, 2002
24
SE
Hi,
I have a problem I can't seem to solve:

I run an apache on port 80 and 443 which needs to connect to another apache on port 9080 and 9443.

I use for non-ssl the proxy directive:
ProxyPass /nonssl ProxyPassReverse /nonssl
This works fine, but when it comes to port 9443 I get into problems. I use:
ProxyPass /ssl ProxyPassReverse /ssl
What happens is that it is connecting correct to the /ssl directory on port 9443, but I need to redirect the users browsers to https if they are on http!

I have tried writing Redirect and Rewrite directives to no avail.

I put them after the proxy directives in the conf. i.e

Redirect or
RewriteRule ^/ssl(.*)$ [L]
or
RewriteRule ^/ssl(/)?$ [R,L]
or
RedirectMatch ^/ssl(.*)
If I manually type in it works fine though.

Anyone with ideas?
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top