diff --git a/conf/kapitel/kapitel_04.conf b/conf/kapitel/kapitel_04.conf new file mode 100644 index 0000000..cb33846 --- /dev/null +++ b/conf/kapitel/kapitel_04.conf @@ -0,0 +1,34 @@ +##### Kapitel 4 - URLs umschreiben + +### mod_alias + +Include conf/extra/httpd-autoindex.conf + +Alias /sysdoc/ "/usr/share/doc/" + + Options Indexes + AllowOverride None + Require all granted + + + +### mod_userdir + +LoadModule userdir_module modules/mod_userdir.so + +Include conf/extra/httpd-userdir.conf + +### mod_rewrite + +LoadModule rewrite_module modules/mod_rewrite.so + +RewriteEngine On +RewriteRule ^/zwei\.html$ /eins.html +RewriteRule ^/drei\.html$ /eins.html [R] + +## Weiteres +RewriteRule vier.html /eins.html [R] +RewriteRule ^/google\.html$ http://google.de [R] +RewriteRule ^/ssl\.html$ https://localhost/ssl.html [R] +RewriteRule phpmyadmin http://www.disney.com [R,NC] +