How to redirect to a https domain name
Monah Baki <[email protected]>
| Newsgroups | gmane.comp.apache.mod-security.user |
|---|---|
| Message-ID | <CALP3=x-juoDAJ9Eko3L3ELTD8aJiZnk4zAUheb_y4kzJQD24nw@mail.gmail.com> |
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. _______________________________________________ mod-security-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mod-security-users Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs: http://www.modsecurity.org/projects/commercial/rules/ http://www.modsecurity.org/projects/commercial/support/