Commit b8e3b4ad authored by Ryan Herbert's avatar Ryan Herbert Committed by marc duez

nginx conf files optional trailing slash for prams

parent 2cbed2c1
......@@ -42,7 +42,7 @@ server {
error_page 405 = $1;
location /browser {
rewrite /browser/([0-9]+)/([0-9]+)(/+) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9]+)/([0-9]+)(\/?) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9/]+)/(css|js|images|test)/(.*) /browser/$2/$3 redirect;
root /usr/share/vidjil;
expires 1h;
......
......@@ -19,7 +19,7 @@ server {
## from the previous server instance to manage static files
location /browser {
rewrite /browser/([0-9]+)/([0-9]+)(/+) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9]+)/([0-9]+)(\/?) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9/]+)/(css|js|images|test)/(.*) /browser/$2/$3 redirect;
root /usr/share/vidjil;
expires 1h;
......
......@@ -113,7 +113,7 @@ server {
## from the previous server instance to manage static files
location /browser {
rewrite /browser/([0-9]+)/([0-9]+)(/+) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9]+)/([0-9]+)(\/?) /browser/?set=$1&conf=$2 break;
rewrite /browser/([0-9/]+)/(css|js|images|test)/(.*) /browser/$2/$3 redirect;
root $CWD/../;
expires 1h;
......
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