From 1a345aeb887e5c14c3634cf124b632c7fe7a6dc9 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 07 2013 20:01:40 +0000 Subject: Update customized configuration of httpd-2.2.3-74.el5 package. - Previously, when you access any URL at centos.org.cu without specifying https:// as protocol, httpd served the page without encrypting the communication. This commit makes use of Apache's mod_rewrite to secure http connections. --- diff --git a/Artworks/Webenv/Httpd/2.2.3-74.el5/webenv.conf b/Artworks/Webenv/Httpd/2.2.3-74.el5/webenv.conf index 9e4c85e..7eb5a4d 100644 --- a/Artworks/Webenv/Httpd/2.2.3-74.el5/webenv.conf +++ b/Artworks/Webenv/Httpd/2.2.3-74.el5/webenv.conf @@ -26,6 +26,14 @@ Alias /webenv "/var/www/webenv" ###################################################################### +# Rewrite URL to use secure (SSL/TSL) connection. +###################################################################### + +RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L] + +###################################################################### # Error Screens' Customization ######################################################################