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
master
Daniel Berteaud 11 years ago
parent a5a08048b5
commit 046453c10d
  1. 6
      conf/httpd_vhost.conf

@ -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"
Loading…
Cancel
Save