Advertisement
abicska

Virtual host

Jan 27th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. NameVirtualHost *:80
  2. NameVirtualHost *:443
  3.  
  4. <VirtualHost *:80>
  5. ServerName a.x.com
  6. Redirect permanent / https://a.x.com/
  7. </VirtualHost>
  8.  
  9. <VirtualHost *:443>
  10. ServerName a.x.com
  11. ServerAdmin a@x.com
  12. DocumentRoot /hosting/a.x.com/public
  13.  
  14. <Directory /hosting/a.x.com/public>
  15. Require all granted
  16.  
  17. Options -Indexes
  18. AllowOverride All
  19. </Directory>
  20.  
  21. SSLEngine on
  22. SSLCertificateFile /hosting/ssl-cert.pem
  23. SSLCertificateKeyFile /hosting/ssl-key.pem
  24. SSLCertificateChainFile /hosting/ssl-chain.pem
  25.  
  26. Alias /phpmyadmin /usr/share/phpmyadmin
  27.  
  28. ErrorLog /var/log/apache2/a.x.com.log
  29. LogLevel error
  30. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement