ProxyRequests Off Order deny,allow Allow from all AuthType basic AuthName "my auth name" AuthBasicAuthoritative Off SetEnv Proxy-Chain-Auth On Order allow,deny Allow from all AddOutputFilterByType SUBSTITUTE application/javascript Substitute s/d='80'/d='443'/ni AuthType basic AuthName "my auth name" AuthBasicAuthoritative Off SetEnv Proxy-Chain-Auth On Order allow,deny Allow from all AuthType basic AuthName "my auth name" AuthBasicAuthoritative Off Order allow,deny Allow from all Header always edit Location http: https: Header onsuccess edit Location http: https: RewriteEngine on RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] # This rule will redirect users from their original location, to the same location but using HTTPS. # i.e. http://www.example.com/foo/ to https://www.example.com/foo/ # The leading slash is made optional so that this will work either in httpd.conf # or .htaccess context ProxyErrorOverride Off ProxyPreserveHost On ProxyPass /console http://localhost:9990/console ProxyPassReverse /console http://localhost:9990/console ProxyErrorOverride Off ProxyPreserveHost On ProxyPass /management http://localhost:9990/management ProxyPassReverse /management http://localhost:9990/management ProxyErrorOverride Off ProxyPreserveHost On ProxyPass /logout http://localhost:9990/logout ProxyPassReverse /logout http://localhost:9990/logout