LoadModule ssl_module /etc/httpd/modules/mod_ssl.so RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} xcatws RewriteRule ^(.*)$ https://${HOSTNAME}$1 [R,L]