diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-11 19:23:41 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-11 19:29:06 +0200 |
commit | 824a5cf9831d0ee8a8f6123c64fab3a9deadea86 (patch) | |
tree | 341a7a170107664ca1cf31bfde09c3fb60fee82c /apache2/sites-available/chat.secure-example.com.conf | |
parent | 5cfbab9215b5ad519150ff2bd5908971cbb7f7d4 (diff) |
fix add extension .conf to apache2 site snippets
Diffstat (limited to 'apache2/sites-available/chat.secure-example.com.conf')
-rw-r--r-- | apache2/sites-available/chat.secure-example.com.conf | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/apache2/sites-available/chat.secure-example.com.conf b/apache2/sites-available/chat.secure-example.com.conf new file mode 100644 index 0000000..1b27bbf --- /dev/null +++ b/apache2/sites-available/chat.secure-example.com.conf @@ -0,0 +1,55 @@ +<VirtualHost *:443> + ServerName chat.example.com:443 + ServerAdmin webmaster@example.com + DocumentRoot /var/www/vhosts/web-static/chat.example.com/ + + Include conf.d/local-ssl.conf + Include conf.d/javascript-common.conf + Include conf.d/local-jabber.conf + +# RewriteEngine On +# RewriteRule ^/$ /xmppchat/ [R] + + Alias /jwchat /usr/share/jwchat/www + <Location /jwchat> + Options +Indexes +Multiviews +FollowSymLinks + </Location> + + Alias /logs /var/www/vhosts/www-ejabberd/conference + <Location /logs> + Options Indexes + DirectoryIndex index.html + </Location> + + ErrorLog ${APACHE_LOG_DIR}/chat.example.com-error.log + CustomLog ${APACHE_LOG_DIR}/chat.example.com-access.log combined +</VirtualHost> +<VirtualHost *:443> + ServerName www.chat.example.com:443 + ServerName *.chat.example.com:443 + ServerName chat:443 + ServerName *.chat:443 + + Include conf.d/local-ssl.conf + Include conf.d/local-log-origin.conf + + RewriteEngine On + RewriteRule / https://chat.example.com/[R] +# RewriteRule /(.*) https://chat.example.com/$1 [R] + + CustomLog ${APACHE_LOG_DIR}/redirect.log origin +</VirtualHost> +<VirtualHost *:80> + ServerName chat.example.com + ServerAlias *.chat.example.com + ServerAlias chat + ServerAlias *.chat + + Include conf.d/local-log-origin.conf + + RewriteEngine On + RewriteRule / https://chat.example.com/ [R] +# RewriteRule /(.*) https://chat.example.com/$1 [R] + + CustomLog ${APACHE_LOG_DIR}/redirect.log origin +</VirtualHost> |