Kapitel 04: URLs umschreiben
This commit is contained in:
parent
140112453a
commit
1973290a7a
34
conf/kapitel/kapitel_04.conf
Normal file
34
conf/kapitel/kapitel_04.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
##### Kapitel 4 - URLs umschreiben
|
||||
|
||||
### mod_alias
|
||||
|
||||
Include conf/extra/httpd-autoindex.conf
|
||||
|
||||
Alias /sysdoc/ "/usr/share/doc/"
|
||||
<Directory "/usr/share/doc/">
|
||||
Options Indexes
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
|
||||
### 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]
|
||||
|
Loading…
Reference in a new issue