-
Notifications
You must be signed in to change notification settings - Fork 20
/
apache.conf
43 lines (37 loc) · 1.11 KB
/
apache.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<VirtualHost *:443>
# virtual host identification
ServerName chat.domain-web.ltd
ServerAlias chat.domain-web.ltd
ServerAdmin [email protected]
Protocols h2 http/1.1
DocumentRoot /var/www/xmpp-web
# ssl
SSLEngine on
Header always set Strict-Transport-Security "max-age=15768000"
SSLStrictSNIVHostCheck on
# websocket proxy
<IfModule mod_proxy_wstunnel.c>
<Location "/xmpp-websocket">
#ProxyPreserveHost On
ProxyPass "ws://domain-xmpp.ltd:5280/xmpp-websocket"
</Location>
</IfModule>
# front files
<Directory "/var/www/xmpp-web/">
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</Directory>
# logs
ErrorLog ${APACHE_LOG_DIR}/chat_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/chat_access.log vhost_combined
</VirtualHost>