atzekraut

Untitled

Oct 18th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. # /etc/apache2/sites-available/cozy.conf
  2. <IfModule mod_ssl.c>
  3. <VirtualHost *:443>
  4. ServerName cloud.le-courier.express
  5. ServerAdmin sebastian@cloud.le-courier.express
  6.  
  7. SSLEngine On
  8. SSLCertificateFile /etc/cozy/server.crt
  9. SSLCertificateKeyFile /etc/cozy/server.key
  10.  
  11. RewriteEngine On
  12. RewriteCond %{REQUEST_URI} ^/.*socket\.io [NC]
  13. RewriteCond %{THE_REQUEST} websocket [NC]
  14. RewriteRule /(.*) ws://127.0.0.1:9104/$1 [P,L]
  15.  
  16. ProxyPass / http://127.0.0.1:9104/ retry=0 Keepalive=On timeout=1600
  17. ProxyPassReverse / http://127.0.0.1:9104/
  18. setenv proxy-initial-not-pooled 1
  19.  
  20. CustomLog /var/log/apache2/cozy-access.log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  21. ErrorLog /var/log/apache2/cozy-error.log
  22.  
  23. </VirtualHost>
  24.  
  25. <VirtualHost *:80>
  26. ServerName cloud.le-courier.express
  27. ServerAdmin sebastian@cloud.le-courier.express
  28.  
  29. Redirect permanent / https://cloud.le-courier.express/
  30.  
  31. </VirtualHost>
  32. </IfModule>
Add Comment
Please, Sign In to add comment