Advertisement
Squito

Apache reverse proxy

Mar 10th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. SSLStaplingCache shmcb:/run/ocsp(128000)
  2. <VirtualHost *:80>
  3. ServerAdmin kapcsolat@xyz.hu
  4. ServerName xyz.hu
  5. Redirect / https://xyz.hu/
  6. DocumentRoot /var/www/html
  7.  
  8. </VirtualHost>
  9.  
  10. # certbot certonly --email kapcsolat@xyz.hu --webroot -w /var/www/html -d xyz.hu, www.xyz.hu
  11. # IfDefine sorok eltávolítása ha a certbot végzett és utána service apache2 reload
  12. <IfDefine IgnoreThis>
  13. <VirtualHost *:443>
  14. ServerAdmin kapcsolat@xyz.hu
  15. ServerName xyz.hu
  16.  
  17. Protocols h2 h2c http/1.1
  18.  
  19. SSLEngine on
  20. SSLCertificateFile "/etc/letsencrypt/live/xyz.hu/cert.pem"
  21. SSLCertificateKeyFile "/etc/letsencrypt/live/xyz.hu/privkey.pem"
  22. SSLCertificateChainFile "/etc/letsencrypt/live/xyz.hu/chain.pem"
  23.  
  24. #Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  25.  
  26. SSLUseStapling on
  27. SSLStaplingResponseMaxAge 60
  28. SSLOpenSSLConfCmd DHParameters "/etc/ssl/private/dhparams_4096.pem"
  29. # openssl dhparam -out /etc/ssl/private/dhparams_4096.pem 4096
  30. # eltart egy darabig VPS/dedi teljesítményétől függően
  31.  
  32.  
  33. ProxyPreserveHost On
  34. ProxyPass / http://192.168.0.1:80/
  35. ProxyPassReverse / http://192.168.0.1:80/
  36.  
  37.  
  38. </VirtualHost>
  39. </IfDefine>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement