Difference between revisions of "Apache"
mediawiki>WikiSysop |
mediawiki>WikiSysop |
||
Line 1: | Line 1: | ||
= rewrite = |
= rewrite = |
||
Leidt de gebruiker automatisch naar de secure Apache pagina van de URL. |
Leidt de gebruiker automatisch naar de secure Apache pagina van de URL. |
||
− | #NameVirtualHost *:80 |
||
<pre> |
<pre> |
||
+ | #NameVirtualHost *:80 |
||
<VirtualHost 194.151.143.203:80> |
<VirtualHost 194.151.143.203:80> |
||
ServerAdmin webmaster@localhost |
ServerAdmin webmaster@localhost |
Revision as of 12:10, 17 September 2011
rewrite
Leidt de gebruiker automatisch naar de secure Apache pagina van de URL.
#NameVirtualHost *:80 <VirtualHost 194.151.143.203:80> ServerAdmin webmaster@localhost ServerName webmail.webhuis.nl DocumentRoot /var/www/redirect RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L] RewriteLog /tmp/rewrite.log RewriteLogLevel 9 </VirtualHost>
Terub naar: Webhuis configuratie