Guest User

Apache Configuration

a guest
Jan 23rd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName mydomain.com
  3. Redirect permanent / https://mydomain.com/
  4. RewriteEngine On
  5. RewriteCond %{HTTPS} off
  6. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  7. RewriteCond %{SERVER_NAME} =mydomain.com
  8. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  9. </VirtualHost>
  10.  
  11. <VirtualHost *:443>
  12.  
  13. ServerName mydomain.com
  14.  
  15. SSLProtocol TLSv1 TLSv1.1 TLSv1.2
  16. SSLEngine on
  17. SSLProxyEngine on
  18. SSLCipherSuite "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH$
  19. SSLHonorCipherOrder on
  20. Header set Strict-Transport-Security "max-age=31536000"
  21.  
  22. DocumentRoot "/usr/share/jitsi-meet"
  23. <Directory "/usr/share/jitsi-meet">
  24. Options Indexes MultiViews Includes FollowSymLinks
  25. AddOutputFilter Includes html
  26. AllowOverride All
  27. Order allow,deny
  28. Allow from all
  29. </Directory>
  30.  
  31. ErrorDocument 404 /static/404.html
  32.  
  33. Alias "/config.js" "/etc/jitsi/meet/mydomain.com-config.js"
  34. Alias /forum http://10.202.1.37/forum
  35. <Location /config.js>
  36. Require all granted
  37. </Location>
  38.  
  39. ProxyPreserveHost on
  40. ProxyPass /http-bind http://localhost:5280/http-bind/
  41. ProxyPassReverse /http-bind http://localhost:5280/http-bind/
  42.  
  43. RewriteEngine on
  44. RewriteRule ^/([a-zA-Z0-9]+)$ /index.html
  45. Include /etc/letsencrypt/options-ssl-apache.conf
  46. SSLCertificateFile /etc/letsencrypt/live/mydomain.com-0001/full$
  47. SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com-0001/pri$
  48. Include /etc/letsencrypt/options-ssl-apache.conf
  49. </VirtualHost>
Add Comment
Please, Sign In to add comment