Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/apache2/sites-available/cozy.conf
- <IfModule mod_ssl.c>
- <VirtualHost *:443>
- ServerName cloud.le-courier.express
- ServerAdmin sebastian@cloud.le-courier.express
- SSLEngine On
- SSLCertificateFile /etc/cozy/server.crt
- SSLCertificateKeyFile /etc/cozy/server.key
- RewriteEngine On
- RewriteCond %{REQUEST_URI} ^/.*socket\.io [NC]
- RewriteCond %{THE_REQUEST} websocket [NC]
- RewriteRule /(.*) ws://127.0.0.1:9104/$1 [P,L]
- ProxyPass / http://127.0.0.1:9104/ retry=0 Keepalive=On timeout=1600
- ProxyPassReverse / http://127.0.0.1:9104/
- setenv proxy-initial-not-pooled 1
- CustomLog /var/log/apache2/cozy-access.log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
- ErrorLog /var/log/apache2/cozy-error.log
- </VirtualHost>
- <VirtualHost *:80>
- ServerName cloud.le-courier.express
- ServerAdmin sebastian@cloud.le-courier.express
- Redirect permanent / https://cloud.le-courier.express/
- </VirtualHost>
- </IfModule>
Add Comment
Please, Sign In to add comment