Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- <VirtualHost *:443>
- # Add Strict Transport Security
- Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
- # Admin email, Server Name (domain name), and any aliases
- ServerAdmin email@email.com
- ServerName websitename.com
- ServerAlias www.websitename.com
- # Index file and Document Root (where the public files are located)
- DirectoryIndex index.html index.php
- DocumentRoot /var/www/html/websitename.com/public_html
- # Log file locations
- LogLevel warn
- ErrorLog /var/www/html/websitename.com/log/error.log
- CustomLog /var/www/html/websitename.com/log/access.log combined
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateFile /etc/letsencrypt/live/websitename.com/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/websitename.com/privkey.pem
- # Include Cipher Suites
- SSLProtocol -ALL +TLSv1.2
- SSLHonorCipherOrder Off
- SSLCipherSuite ECDH+AESGCM:ECDH+CHACHA20:ECDH+AES256:ECDH+AES128:!aNULL:!SHA1:!AESCCM
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement