Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:443>
- ServerName example.org
- DocumentRoot "/var/sites/example.org/htdocs"
- SSLEngine On
- SSLCertificateFile /etc/ssl/certs/test.crt
- SSLCertificateKeyFile /etc/ssl/certs/test.key
- <Directory />
- Options All
- AllowOverride All
- Require all granted
- </Directory>
- LogLevel debug
- ErrorLog /var/log/httpd/example_ssl_error.log
- CustomLog /var/log/httpd/example_ssl_access.log combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName example.org
- DocumentRoot "/var/sites/example.org/htdocs"
- #Redirect permanent / https://example.org/
- #RewriteEngine On
- #RewriteCond %{HTTPS} !=on [NC]
- #RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
- <Directory /var/sites/example.org/htdocs>
- AllowOverride None
- Require all granted
- </Directory>
- ErrorLog /var/log/httpd/example_error.log
- CustomLog /var/log/httpd/example_access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement