Commit beef663d authored by marc duez's avatar marc duez

client_location.conf: remove excessive redirection/rewriting

let javascript handle url rewrite
parent 67040d75
location / {
root /usr/share/vidjil/browser;
rewrite ^/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /$3/$4 redirect;
rewrite ^/([0-9]+)-([0-9]+)/ /?set=$1&config=$2 redirect;
rewrite ^/([0-9]+)-([0-9]+) /?set=$1&config=$2 redirect;
rewrite ^/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /$3/$4 last;
rewrite ^/([0-9]+)-([0-9]+)/ / last;
rewrite ^/([0-9]+)-([0-9]+) / last;
expires 1h;
add_header Cache-Control must-revalidate;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment