Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName domain.de
- ServerAlias www.domain.de www.domain2.de domain2.de
- ServerAdmin admin@domain.de
- Redirect permanent / https://domain.de/
- ErrorLog /var/log/apache2/domain.de_error.log
- CustomLog /var/log/apache2/domain.de_access.log combined
- LogLevel warn
- </VirtualHost>
- <VirtualHost *:443>
- ServerName domain.de
- ServerAlias www.domain.de www.domain2.de domain2.de
- ServerAdmin admin@domain.de
- Include /etc/apache2/snippets/ssl-domain.de.conf
- Include /etc/apache2/snippets/cache.conf
- DocumentRoot /var/www/domain.de/
- ErrorLog /var/log/apache2/domain.de_error.log
- CustomLog /var/log/apache2/domain.de_access.log combined
- LogLevel warn
- <Directory /var/www/domain.de/>
- Options -Indexes +FollowSymLinks +MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement