Advertisement
Mr_media

Some VHOSTs

Dec 10th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. #vhost met rewrite naar https
  2. <VirtualHost *:80>
  3. DocumentRoot "/var/www/www.server.hooghwinkel.com/"
  4. ServerName server.hooghwinkel.com
  5. ServerAlias server.hooghwinkel.com www.server.hooghwinkel.com http://server.hooghwinkel.com http://www.server.hooghwinkel.com
  6. <Directory "/var/www/www.server.hooghwinkel.com">
  7. Options -Indexes
  8. AllowOverride all
  9. </Directory>
  10. Redirect permanent / https://server.hooghwinkel.com
  11. </VirtualHost>
  12.  
  13. And the vhost.conf-ssl:
  14.  
  15. <VirtualHost *:443>
  16. DocumentRoot "/var/www/www.server.hooghwinkel.com/"
  17. ServerName www.server.hooghwinkel.com
  18. ServerAlias server.hooghwinkel.com www.server.hooghwinkel.com http://www.server.hooghwinkel.com
  19. <Directory "/var/www/www.server.hooghwinkel.com/">
  20. Options -Indexes
  21. AllowOverride all
  22. </Directory>
  23. SSLCertificateFile /etc/letsencrypt/live/server.hooghwinkel.com/cert.pem
  24. SSLCertificateKeyFile /etc/letsencrypt/live/server.hooghwinkel.com/privkey.pem
  25. Include /etc/letsencrypt/options-ssl-apache.conf
  26. SSLCertificateChainFile /etc/letsencrypt/live/server.hooghwinkel.com/chain.pem
  27. </VirtualHost>
  28.  
  29. Vhost - HOCOMADVIES:
  30. <VirtualHost *:80>
  31. DocumentRoot "/var/www/www.hocom-advies.nl/www"
  32. ServerName www.hocom-advies.nl
  33. ServerAlias hocom-advies.nl www.hocom-advies.nl http://www.hocom-advies.nl hierbeginthet.nl www.hierbeginthet.nl
  34. <Directory "/var/www/www.hocom-advies.nl/www">
  35. Options -Indexes +FollowSymLinks +MultiViews
  36. AllowOverride all
  37. </Directory>
  38. Redirect permanent / https://hocom-advies.nl/
  39. </VirtualHost>
  40.  
  41. And the Vhost-ssl config HOCOMADVIES
  42. <VirtualHost *:443>
  43. DocumentRoot "/var/www/www.hocom-advies.nl/www"
  44. ServerName hocom-advies.nl
  45. ServerAlias hocom-advies.nl www.hocom-advies.nl https://www.hocom-advies.nl hierbeginthet.nl www.hierbeginthet.nl
  46. <Directory "/var/www/www.hocom-advies.nl/www">
  47. Options -Indexes
  48. AllowOverride all
  49. </Directory>
  50. SSLCertificateFile /etc/letsencrypt/live/hocom-advies.nl/cert.pem
  51. SSLCertificateKeyFile /etc/letsencrypt/live/hocom-advies.nl/privkey.pem
  52. Include /etc/letsencrypt/options-ssl-apache.conf
  53. SSLCertificateChainFile /etc/letsencrypt/live/hocom-advies.nl/chain.pem
  54. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement