Commit 987293fe authored by marc duez's avatar marc duez

nginx config

use redirect flag
parent 126f754f
......@@ -31,23 +31,31 @@ server {
client_max_body_size 20G;
###
}
rewrite ^/browser/([0-9]+)-([0-9]+)(\/?) /?set=$1&conf=$2 break;
rewrite ^/([0-9]+)-([0-9]+)(\/?) /?set=$1&conf=$2 break;
location /browser {
root /usr/share/vidjil;
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;
expires 1h;
add_header Cache-Control must-revalidate;
error_page 405 = $uri;
}
location / {
root /usr/share/vidjil/browser;
location /browser {
root /usr/share/vidjil;
rewrite ^/browser/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /browser/$3/$4 redirect;
rewrite ^/browser/([0-9]+)-([0-9]+)/ /browser/?set=$1&config=$2 redirect;
rewrite ^/browser/([0-9]+)-([0-9]+) /browser/?set=$1&config=$2 redirect;
expires 1h;
add_header Cache-Control must-revalidate;
error_page 405 = $uri;
}
location /germline {
root /usr/share/vidjil/;
......
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