Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #vhost met rewrite naar https
- <VirtualHost *:80>
- DocumentRoot "/var/www/www.server.hooghwinkel.com/"
- ServerName server.hooghwinkel.com
- ServerAlias server.hooghwinkel.com www.server.hooghwinkel.com http://server.hooghwinkel.com http://www.server.hooghwinkel.com
- <Directory "/var/www/www.server.hooghwinkel.com">
- Options -Indexes
- AllowOverride all
- </Directory>
- Redirect permanent / https://server.hooghwinkel.com
- </VirtualHost>
- And the vhost.conf-ssl:
- <VirtualHost *:443>
- DocumentRoot "/var/www/www.server.hooghwinkel.com/"
- ServerName www.server.hooghwinkel.com
- ServerAlias server.hooghwinkel.com www.server.hooghwinkel.com http://www.server.hooghwinkel.com
- <Directory "/var/www/www.server.hooghwinkel.com/">
- Options -Indexes
- AllowOverride all
- </Directory>
- SSLCertificateFile /etc/letsencrypt/live/server.hooghwinkel.com/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/server.hooghwinkel.com/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateChainFile /etc/letsencrypt/live/server.hooghwinkel.com/chain.pem
- </VirtualHost>
- Vhost - HOCOMADVIES:
- <VirtualHost *:80>
- DocumentRoot "/var/www/www.hocom-advies.nl/www"
- ServerName www.hocom-advies.nl
- ServerAlias hocom-advies.nl www.hocom-advies.nl http://www.hocom-advies.nl hierbeginthet.nl www.hierbeginthet.nl
- <Directory "/var/www/www.hocom-advies.nl/www">
- Options -Indexes +FollowSymLinks +MultiViews
- AllowOverride all
- </Directory>
- Redirect permanent / https://hocom-advies.nl/
- </VirtualHost>
- And the Vhost-ssl config HOCOMADVIES
- <VirtualHost *:443>
- DocumentRoot "/var/www/www.hocom-advies.nl/www"
- ServerName hocom-advies.nl
- ServerAlias hocom-advies.nl www.hocom-advies.nl https://www.hocom-advies.nl hierbeginthet.nl www.hierbeginthet.nl
- <Directory "/var/www/www.hocom-advies.nl/www">
- Options -Indexes
- AllowOverride all
- </Directory>
- SSLCertificateFile /etc/letsencrypt/live/hocom-advies.nl/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/hocom-advies.nl/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateChainFile /etc/letsencrypt/live/hocom-advies.nl/chain.pem
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement