Commit 3772117f authored by marc duez's avatar marc duez

nginx config

nginx file for http
parent 8190f4f0
...@@ -18,17 +18,29 @@ server { ...@@ -18,17 +18,29 @@ server {
## if you serve static files through https, copy here the section ## if you serve static files through https, copy here the section
## from the previous server instance to manage static files ## from the previous server instance to manage static files
location /(c|client|browser) { location / {
rewrite /(c|client|browser) /browser; root /usr/share/vidjil/browser;
rewrite /browser/([0-9]+)/([0-9]+)(\/?) /browser/?set=$1&conf=$2 break; rewrite ^/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /$3/$4 redirect;
rewrite /browser/([0-9/]+)/(css|js|images|test)/(.*) /browser/$2/$3 redirect; rewrite ^/([0-9]+)-([0-9]+)/ /?set=$1&config=$2 redirect;
root /usr/share/vidjil; rewrite ^/([0-9]+)-([0-9]+) /?set=$1&config=$2 redirect;
expires 1h;
add_header Cache-Control must-revalidate; expires 1h;
add_header Cache-Control must-revalidate;
error_page 405 = $uri; error_page 405 = $uri;
}
}
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 { location /germline {
root /usr/share/vidjil/; 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