1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-02 05:21:39 +02:00
vroom/docs/httpd/httpd_vhost.conf

59 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-04-03 17:42:54 +02:00
<VirtualHost *:80>
ServerName vroom.example.com
DocumentRoot /opt/vroom/public
RewriteEngine on
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]
</VirtualHost>
<VirtualHost *:443>
ServerName vroom.example.com
SSLEngine on
DocumentRoot /opt/vroom/public
2014-06-18 17:48:08 +02:00
<IfModule mod_proxy_wstunnel.c>
ProxyPass /socket.io/1/websocket ws://localhost:8090/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8090/socket.io/1/websocket
</IfModule>
2014-06-17 12:36:38 +02:00
# Etherpad example
# If you install etherpad on the same box, listening on its default
# port (9001) and want it to be accessible on /etherpad/
2014-06-18 17:48:08 +02:00
# <IfModule mod_proxy_wstunnel.c>
2014-06-17 12:36:38 +02:00
# ProxyPass /etherpad/socket.io/1/websocket ws://localhost:9001/socket.io/1/websocket
# ProxyPassReverse /etherpad/socket.io/1/websocket ws://localhost:9001/socket.io/1/websocket
# </IfModule>
# ProxyPass /etherpad/ http://localhost:9001/
# ProxyPassReverse /etherpad/ http://localhost:9001/
ProxyPass /.well-known/acme-challenge !
2015-08-07 10:23:39 +02:00
ProxyPass / http://127.0.0.1:8090/ Keepalive=on
ProxyPassReverse / http://127.0.0.1:8090/
<Proxy *>
ProxyPreserveHost On
</Proxy>
2014-04-03 17:42:54 +02:00
<Location />
2015-02-12 12:36:11 +01:00
Require all granted
2014-04-03 17:42:54 +02:00
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch ^HMSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
2014-05-27 09:43:03 +02:00
Header unset ETag
2014-04-03 17:42:54 +02:00
</IfModule>
2014-05-27 09:43:03 +02:00
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 0 seconds"
2014-04-03 17:42:54 +02:00
</Location>
# You should customize this part to access the admin interface
# VROOM doesn't handle authentication, it's up to you to protect
# /admin on your web server
<Location /admin>
require local
</Location>
2014-04-03 17:42:54 +02:00
</VirtualHost>