Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by ChrisPepper: http://wiki.apache.org/httpd/Recipes/RedirectSSL The comment on the change is: Primp the wording a bit. ------------------------------------------------------------------------------ = Redirect Request To SSL = - Lets say you want http://www.domain.com/secure/ to always be sent over SSL (I presume here that both the normal and the ssl vhost have the same content). You could do this by linking to the correct page from within your HTML pages... but there will always be some user who will sneak by it this way. + Let's say you want http://www.domain.com/secure/ to always be sent over SSL (I presume here that both the normal and the SSL vhost have the same content). You could do this by linking to the correct page from within your HTML pages... but there will always be some user who will sneak by it that way. == Using mod_rewrite == @@ -13, +13 @@ </Location> }}} - '''Note: It can also be use inside a directory or vhost container.''' + '''Note: This snippet can also be used inside a directory or vhost container.''' Make sure you have loaded [http://httpd.apache.org/docs/trunk/mod/mod_rewrite.html mod_rewrite] and have it enabled. @@ -24, +24 @@ == Using virtual hosts == - When using SSL, you will frequently have at least two virtual-hosts: one on port 80 to serve ordinary requests, and one on port 443 to serve SSL. If you wish to redirect users from the non-secure site to the SSL site, you can use an ordinary [http://httpd.apache.org/docs/trunk/mod/mod_alias.html#redirect Redirect] directive inside the non-secure VirtualHost: + When using SSL, you will frequently have at least two virtual hosts: one on port 80 to serve ordinary requests, and one on port 443 to serve SSL. If you wish to redirect users from the non-secure site to the SSL site, you can use an ordinary [http://httpd.apache.org/docs/trunk/mod/mod_alias.html#redirect Redirect] directive inside the non-secure VirtualHost: {{{ NameVirtualHost *:80
