From e5308fc7e2d5222ffdac9cd2a93cd01035d0a9ef Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 26 May 2014 22:15:31 +0200 Subject: [PATCH] Add a httpd conf using an alias Which should work out of the box on a Fedora box Fix #37 --- conf/httpd_alias.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 conf/httpd_alias.conf diff --git a/conf/httpd_alias.conf b/conf/httpd_alias.conf new file mode 100644 index 0000000..9b7600e --- /dev/null +++ b/conf/httpd_alias.conf @@ -0,0 +1,33 @@ +ProxyPass /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket +ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket +ProxyPass /socket.io/ http://localhost:8888/socket.io/ +ProxyPassReverse /socket.io/ http://localhost:8888/socket.io/ +AliasMatch ^/vroom/(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/vroom/public/$2 +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^/vroom/(\d{10}/)?(js|css|img|fonts|snd)/(.*)$ /vroom/$2/$3 [L] +ScriptAlias /vroom /opt/vroom/public/vroom.pl + + SSLRequireSSL on + require all granted + + 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 + + + Header append Vary User-Agent env=!dont-vary + + + + ExpiresActive On + ExpiresDefault "access plus 1 month" + + + + + SSLRequireSSL on +