Advertisement
Guest User

apache-site-configuration

a guest
Jun 14th, 2016
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName domain.de
  3. ServerAlias www.domain.de www.domain2.de domain2.de
  4. ServerAdmin admin@domain.de
  5.  
  6. Redirect permanent / https://domain.de/
  7.  
  8. ErrorLog /var/log/apache2/domain.de_error.log
  9. CustomLog /var/log/apache2/domain.de_access.log combined
  10. LogLevel warn
  11. </VirtualHost>
  12.  
  13. <VirtualHost *:443>
  14. ServerName domain.de
  15. ServerAlias www.domain.de www.domain2.de domain2.de
  16. ServerAdmin admin@domain.de
  17. Include /etc/apache2/snippets/ssl-domain.de.conf
  18. Include /etc/apache2/snippets/cache.conf
  19. DocumentRoot /var/www/domain.de/
  20.  
  21. ErrorLog /var/log/apache2/domain.de_error.log
  22. CustomLog /var/log/apache2/domain.de_access.log combined
  23. LogLevel warn
  24.  
  25. <Directory /var/www/domain.de/>
  26. Options -Indexes +FollowSymLinks +MultiViews
  27. AllowOverride All
  28. Order allow,deny
  29. allow from all
  30. </Directory>
  31. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement