Skip to content

Commit

Permalink
Fixing routing problem for clue.io
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiedu committed Sep 5, 2019
1 parent efcf3eb commit a149cbc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ __pycache__/
cmapPy.egg-info/
.vscode
.gitignore
.idea
.idea
docs/build
15 changes: 11 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ http {
index index.html;
server_name cmapPy;
client_max_body_size 16m;
location ~ ^/cmapPy(?:/(.*))?$ {
root /usr/share/nginx/html;
access_log off;
}
port_in_redirect off;
location ~ ^/cmapPy$ {
try_files $uri @rewrite;
}
location @rewrite {
return 302 $scheme://$http_host$uri/;
}
location ~ ^/cmapPy(?:/(.*))?$ {
root /usr/share/nginx/html;
access_log off;
}
}
}

0 comments on commit a149cbc

Please sign in to comment.