| ... | @@ -10,44 +10,44 @@ Folgende Konfigurationen müssen durchgeführt werden: |
... | @@ -10,44 +10,44 @@ Folgende Konfigurationen müssen durchgeführt werden: |
|
|
1. Anlegen der Konfigurationsdatei für einen virtuellen Host in
|
|
1. Anlegen der Konfigurationsdatei für einen virtuellen Host in
|
|
|
`/etc/apache2/vhosts.d/`.
|
|
`/etc/apache2/vhosts.d/`.
|
|
|
```
|
|
```
|
|
|
Listen 81
|
|
Listen 81
|
|
|
<VirtualHost *:81>
|
|
<VirtualHost *:81>
|
|
|
DocumentRoot /srv/www/vhosts/foo
|
|
DocumentRoot /srv/www/vhosts/foo
|
|
|
HostnameLookups Off
|
|
HostnameLookups Off
|
|
|
UseCanonicalName Off
|
|
UseCanonicalName Off
|
|
|
ServerSignature On
|
|
ServerSignature On
|
|
|
Include /etc/apache2/conf.d/*.conf
|
|
Include /etc/apache2/conf.d/*.conf
|
|
|
ScriptAlias /cgi-bin/ "/srv/www/vhosts/foo/cgi-bin/"
|
|
ScriptAlias /cgi-bin/ "/srv/www/vhosts/foo/cgi-bin/"
|
|
|
<Directory "/srv/www/vhosts/foo/cgi-bin">
|
|
<Directory "/srv/www/vhosts/foo/cgi-bin">
|
|
|
AllowOverride None
|
|
AllowOverride None
|
|
|
Options +ExecCGI -Includes
|
|
Options +ExecCGI -Includes
|
|
|
<IfModule !mod_access_compat.c>
|
|
<IfModule !mod_access_compat.c>
|
|
|
Require all granted
|
|
Require all granted
|
|
|
</IfModule>
|
|
</IfModule>
|
|
|
<IfModule mod_access_compat.c>
|
|
<IfModule mod_access_compat.c>
|
|
|
Order allow,deny
|
|
|
|
|
Allow from all
|
|
|
|
|
</IfModule>
|
|
|
|
|
</Directory>
|
|
|
|
|
<IfModule mod_userdir.c>
|
|
|
|
|
UserDir public_html
|
|
|
|
|
Include /etc/apache2/mod_userdir.conf
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
|
|
|
|
|
|
|
|
|
|
<Directory "/srv/www/vhosts/foo">
|
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
|
AllowOverride None
|
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
|
Require all granted
|
|
|
|
|
</IfModule>
|
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
|
Order allow,deny
|
|
Order allow,deny
|
|
|
Allow from all
|
|
Allow from all
|
|
|
|
</IfModule>
|
|
|
|
</Directory>
|
|
|
|
<IfModule mod_userdir.c>
|
|
|
|
UserDir public_html
|
|
|
|
Include /etc/apache2/mod_userdir.conf
|
|
|
</IfModule>
|
|
</IfModule>
|
|
|
</Directory>
|
|
|
|
|
</VirtualHost>
|
|
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
|
|
|
|
|
|
|
|
<Directory "/srv/www/vhosts/foo">
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all granted
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</IfModule>
|
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
1. Erzeugen des zugehörigen Verzeichnisses (»DocumentRoot«)
|
|
1. Erzeugen des zugehörigen Verzeichnisses (»DocumentRoot«)
|
| ... | |
... | |
| ... | | ... | |