nightmous

Untitled

Mar 14th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName mag.nightdestiny.ru
  3. DocumentRoot /var/www/html/shop
  4. ErrorLog /var/log/apache2/error_shop.log
  5. CustomLog /var/log/apache2/access_shop.log combined
  6. Redirect / https://mag.nightdestiny.ru/
  7. </VirtualHost>
  8.  
  9. <VirtualHost *:443>
  10. ServerAdmin [email protected]
  11. ServerName mag.nightdestiny.ru
  12. DocumentRoot /var/www/html/shop
  13.  
  14. <Directory />
  15. Options FollowSymLinks
  16. AllowOverride None
  17. </Directory>
  18. <Directory /var/www/html/shop/>
  19. Options Indexes FollowSymLinks MultiViews
  20. AllowOverride All
  21. Order allow,deny
  22. allow from all
  23. </Directory>
  24.  
  25. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  26. <Directory "/usr/lib/cgi-bin">
  27. AllowOverride None
  28. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32.  
  33.  
  34. SSLEngine on
  35. SSLCertificateFile /etc/apache2/ssl/shop.pem
  36. SSLCertificateKeyFile /etc/apache2/ssl/shop.key
  37. ErrorLog /var/log/apache2/error_shop.log
  38. # Possible values include: debug, info, notice, warn, error, crit,
  39. # alert, emerg.
  40. LogLevel warn
  41. CustomLog /var/log/apache2/access_shop.log combined
  42. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment