diff --git a/conf/httpd.conf b/conf/httpd.conf index 3c968a4..22e042e 100644 --- a/conf/httpd.conf +++ b/conf/httpd.conf @@ -12,7 +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 ^/((js|css|img|fonts|snd)/.*) /opt/vroom/public/$1 + AliasMatch ^/(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/devroom/public/$2 + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^/(\d{10}/)?(js|css|img|fonts|snd)/(.*)$ /$2/$3 [L] ScriptAlias / /opt/vroom/public/vroom.pl/ require all granted diff --git a/templates/default/header.html.ep b/templates/default/header.html.ep index 6de8069..abdf6af 100644 --- a/templates/default/header.html.ep +++ b/templates/default/header.html.ep @@ -6,7 +6,7 @@ <% foreach my $css (qw(bootstrap.min.css vroom.css)){ %> - " rel="stylesheet" type="text/css"> + /css/<%= $css %>" rel="stylesheet" type="text/css"> <% } %> diff --git a/templates/default/js_common.html.ep b/templates/default/js_common.html.ep index bd4ba8f..75cb6e1 100644 --- a/templates/default/js_common.html.ep +++ b/templates/default/js_common.html.ep @@ -3,5 +3,5 @@ <% foreach my $js (qw(jquery-1.11.1.min.js bootstrap.min.js notify-combined.min.js vroom.js)){ %> - + <% } %> diff --git a/templates/default/js_room.html.ep b/templates/default/js_room.html.ep index fb230e9..da85ef3 100644 --- a/templates/default/js_room.html.ep +++ b/templates/default/js_room.html.ep @@ -1,5 +1,5 @@ <% foreach my $js (qw(simplewebrtc.bundle.js jquery.browser.min.js sprintf.js FileSaver.js)){ %> - + <% } %>