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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache - http application with https

Status
Not open for further replies.

wllmsgeraint

Technical User
Oct 6, 2011
1
GB
Hi, Not sure if anyone out there can help me. Been hunting for ages and can't seem to make any progress. I have an application that refers to itself with http. I am reverse proxing to this, from a https source (terminated upstream). Initially it is linking to but the redirects to I don't allow http at the front end so the link is failing. Is there a way that I can force the proxy return to use https instead (albeit on port 80 until it hits the SSL terminator) as will work. Any help gratefully appreciated
 
Can you post the applicable section of your conf file? You can change any hostnames or IP's for examples purposes.
 
Also, if you back end is an application where the actual hyperlinks are then you need to change those to be https:// otherwise you will get the unwanted behavior you are talking about (Either through a configuration in the app, changing the base href, or manually if these links are absolute)

A lazy way to get around this would be a rewrite rule, but you will still need to be at least listening on port 80 for the request to even hit the server.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top