ninegate/tmpl/ninegate-apache.conf

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-04-17 17:27:19 +02:00
Alias /ninegate /var/www/html/ninegate/web
2018-12-18 09:44:39 +01:00
2019-04-17 17:27:19 +02:00
<Directory "/var/www/html/ninegate/web" >
2018-12-18 09:44:39 +01:00
AllowOverride All
Order Allow,Deny
Allow from All
2019-03-12 14:50:57 +01:00
Options Indexes FollowSymLinks MultiViews
php_admin_flag allow_url_fopen On
2019-09-16 14:16:17 +02:00
</Directory>
2019-12-12 12:02:54 +01:00
%if %%getVar("ninegate_activate_websocket", 'non') == "oui"
2019-09-16 14:16:17 +02:00
Listen %%adresse_ip_eth0:%%ninegate_websocket_portexterne
<VirtualHost %%adresse_ip_eth0:%%ninegate_websocket_portexterne>
ErrorLog /var/log/apache2/ssl_error.log
CustomLog /var/log/apache2/ssl_access.log common
SSLEngine on
2019-09-16 15:53:08 +02:00
%if %%cert_type == "letsencrypt"
SSLCertificateFile /etc/ssl/letsencrypt/conf/live/%%ninegate_websocket_url/cert.pem
SSLCertificateKeyFile /etc/ssl/letsencrypt/conf/live/%%ninegate_websocket_url/privkey.pem
%else
2019-09-16 14:16:17 +02:00
SSLCertificateFile %%server_cert
SSLCertificateKeyFile %%server_key
2019-09-16 15:53:08 +02:00
%end if
2019-09-16 14:16:17 +02:00
SSLProtocol all -SSLv3 -SSLv2
ServerName %%ninegate_websocket_url
RewriteEngine On
ProxyPass / ws://%%adresse_ip_eth0:%%ninegate_websocket_portinterne retry=0 keepalive=On
ProxyPassReverse / ws://%%adresse_ip_eth0:%%ninegate_websocket_portinterne retry=0
2019-12-12 12:02:54 +01:00
</VirtualHost>
%end if