0

What is the easiest way to redirect http to https when mod_proxy_ajp is used?

I have the configuration below for mod_proxy_ajp:

ProxyPass /home ajp://localhost:8080/home
ProxyPassReverse /home ajp://localhost:8080/home

I was hoping if there is a way to do the redirect here, instead of doing it in the /etc/httpd/conf configs.

JonathanC
  • 1
  • 1
  • Your ProxyPass is to localhost, setting HTTPS there has no security nor any other benefit. Typically you want HTTPS between the client and your server, or for securing connections between servers. You'll need some configuration to redirect your clients to https, mod_rewrite is an option or a rewrite directive which is even more efficient: `Redirect permanent /home https://mysite.example.com/home` – HBruijn Jun 09 '15 at 05:48
  • I guess your answer implies, no to my question. Thank you! – JonathanC Jun 09 '15 at 06:55

0 Answers0