Skip to end of metadataGo to start of metadata
Redirect HTTP to HTTPS on Apache Virtual Host Additionally, to force all web traffic to use HTTPS, you can also configure your virtual host file. Normally, there are two important sections of a virtual host configurations if an SSL certificate is enabled; the first contains configurations for the non-secure port 80. This section contains examples of how the Apache Web Server (version 2.2.20) can be used as a proxy in front of SignServer. The guide is only informative, please consult the current Apache documentation for the modules used. The proxy can for example be used to: Use standard ports (80, 443) instead of unprivileged ports used by the application.
HTTP to HTTPS
Scenario :
You want to force people coming to your site to use HTTPS. Either for the entire site or a small sub-section of it.
Apache Proxypass Https
- Note*
Using mod_rewrite to do this isn't the recommended behavior. See RedirectSSL
Fix :
Entire site (.htaccess) :
Note: While the rules you need are the same as above (because the rule above doesn't depend on any of the quirks of rewrite in .htaccess), you will need to ensure that you place this in a .htaccess file in the root of the site you want to apply it against, and to make sure you have the appropriate AllowOverride configuration in your httpd.conf
Specific Directory
Apache Proxy Https To Http Backend
Either put the above solution in a .htaccess file in the directory to be affected, or put the URI prefix in the regex itself.