Rename httpd.conf to httpd_vhost.conf

Take language suffix into account
Also fix cache indication on resources files using a timestamp in the path
This commit is contained in:
Daniel Berteaud 2014-05-26 22:28:33 +02:00
parent a5a08048b5
commit 046453c10d
1 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@
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 ^/(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/vroom/public/$2
AliasMatch ^/([a-z]{2}/)?(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/vroom/public/$3
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(\d{10}/)?(js|css|img|fonts|snd)/(.*)$ /$2/$3 [L]
RewriteRule ^/([a-z]{2}/)?(\d{10}/)?(js|css|img|fonts|snd)/(.*)$ /$3/$4 [L]
ScriptAlias / /opt/vroom/public/vroom.pl/
<Location />
require all granted
@ -31,7 +31,7 @@
Header append Vary User-Agent env=!dont-vary
</IfModule>
</Location>
<LocationMatch "^/((js|css|img|fonts|snd)/)">
<LocationMatch "^/([a-z]{2}/)?(\d{10}/)?(js|css|img|fonts|snd)/">
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"