Guest User

Untitled

a guest
Feb 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ProxyPreserveHost On
  4. ProxyPass / http://1.2.3.4:8080/
  5. ProxyPassReverse / http://1.2.3.4:8080/
  6.  
  7. ServerName wiki.mydomain.com
  8. DocumentRoot /var/www/wiki.mydomain.com/
  9.  
  10. RewriteEngine on
  11. RewriteCond %{SERVER_NAME} =wiki.mydomain.com
  12. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  13.  
  14. </VirtualHost>
  15.  
  16. #Listen 443
  17. #NameVirtualHost *:443
  18.  
  19. <IfModule mod_ssl.c>
  20. <VirtualHost *:443>
  21.  
  22. ProxyPass / http://1.2.3.4:8080/ retry=1 acquire=3000 Keepalive=On
  23. ProxyPassReverse / http://1.2.3.4:8080/
  24.  
  25. ServerName wiki.mydomain.com
  26. DocumentRoot /var/www/wiki.mydomain.com/
  27.  
  28. #MANUALEDITING
  29.  
  30. #Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
  31.  
  32. #/MANUALEDITING
  33.  
  34. SSLEngine On
  35. SSLCertificateFile /etc/letsencrypt/live/wiki.mydomain.com/fullchain.pem
  36. SSLCertificateKeyFile /etc/letsencrypt/live/wiki.mydomain.com/privkey.pem
  37. Include /etc/letsencrypt/options-ssl-apache.conf
  38.  
  39. </VirtualHost>
  40. </IfModule>
  41.  
  42. ...
  43. host: 'https://wiki.mydomain.com'
  44. port: 8080
  45. ...
  46.  
  47. ...
  48. bind_ip = 127.0.0.1,1.2.3.4
  49. port = 27017
  50. ...
  51. # SSL options
  52. # Enable SSL on normal ports
  53. #sslOnNormalPorts = true
  54. # SSL Key file and password
  55. #sslPEMKeyFile = /etc/letsencrypt/live/wiki.mydomain.com/fullchain.pem
  56. #sslPEMKeyPassword = /etc/letsencrypt/live/wiki.mydomain.com/keyfile.pem
Add Comment
Please, Sign In to add comment