[mod-security-users] How to redirect to a https domain name
Brought to you by:
victorhora,
zimmerletw
|
From: Monah B. <mon...@gm...> - 2019-04-11 23:13:06
|
Hi all, I have a webserver running on port 80 and 443, and another server running modsecurity, my A record for www is the IP address of the WAF running apache/modsecurity on my waf httpd.conf: <VirtualHost *:80> ServerName www.<domainname>.com #DocumentRoot /var/www/htdocs ProxyPreserveHost On ProxyPass / http://<ipaddress of webserver>/ ProxyPassReverse / http://<ipaddress of webserver>/ >From the web if I enter http://URL, it works, and it also works if I enter the http://IP_address. However if I change the following in my WAF httpd.conf to: ProxyPass / https://www.<domainname>.com/ ProxyPassReverse / https:// www.<domainname>.com / It stops working, basically I am trying to redirect http to https Any help will be greatly appreciated. |