force_https_ssl_by_directory_with_httpd.conf
edit /etc/httpd/conf/httpd.conf
# Force <DIR> to use SSL RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/<DIR>(.*)$ https://%{HTTP_HOST}/<DIR>$1 [L,R]
Example:
# Force Nagios to use SSL RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/nagios(.*)$ https://%{HTTP_HOST}/nagios$1 [L,R]
force_https_ssl_by_directory_with_httpd.conf.txt · Last modified: 2008/08/04 14:51 by juckins