Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SSLStaplingCache shmcb:/run/ocsp(128000)
- <VirtualHost *:80>
- ServerAdmin kapcsolat@xyz.hu
- ServerName xyz.hu
- Redirect / https://xyz.hu/
- DocumentRoot /var/www/html
- </VirtualHost>
- # certbot certonly --email kapcsolat@xyz.hu --webroot -w /var/www/html -d xyz.hu, www.xyz.hu
- # IfDefine sorok eltávolítása ha a certbot végzett és utána service apache2 reload
- <IfDefine IgnoreThis>
- <VirtualHost *:443>
- ServerAdmin kapcsolat@xyz.hu
- ServerName xyz.hu
- Protocols h2 h2c http/1.1
- SSLEngine on
- SSLCertificateFile "/etc/letsencrypt/live/xyz.hu/cert.pem"
- SSLCertificateKeyFile "/etc/letsencrypt/live/xyz.hu/privkey.pem"
- SSLCertificateChainFile "/etc/letsencrypt/live/xyz.hu/chain.pem"
- #Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
- SSLUseStapling on
- SSLStaplingResponseMaxAge 60
- SSLOpenSSLConfCmd DHParameters "/etc/ssl/private/dhparams_4096.pem"
- # openssl dhparam -out /etc/ssl/private/dhparams_4096.pem 4096
- # eltart egy darabig VPS/dedi teljesítményétől függően
- ProxyPreserveHost On
- ProxyPass / http://192.168.0.1:80/
- ProxyPassReverse / http://192.168.0.1:80/
- </VirtualHost>
- </IfDefine>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement