Update konfiguráků Nginxu podle aktuálního stavu
This commit is contained in:
parent
c37f9fbab4
commit
abf493afe8
2 changed files with 24 additions and 3 deletions
|
@ -32,6 +32,13 @@ server {
|
|||
location /media/ {
|
||||
root /akce/mam/www/mamweb-test/;
|
||||
}
|
||||
|
||||
location /aesop-export/ {
|
||||
auth_basic "AESOP API";
|
||||
auth_basic_user_file /akce/mam/www/mamweb-test/.htpasswd-aesop;
|
||||
try_files $uri @mamweb_test;
|
||||
}
|
||||
|
||||
|
||||
location / { try_files $uri @mamweb_test; }
|
||||
|
||||
|
|
|
@ -26,6 +26,12 @@ server {
|
|||
|
||||
client_max_body_size 50M;
|
||||
|
||||
location /aesop-export/ {
|
||||
auth_basic "AESOP API";
|
||||
auth_basic_user_file /akce/mam/www/mamweb-prod/.htpasswd-aesop;
|
||||
try_files $uri @mamweb_prod;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
root /akce/mam/www/mamweb-prod/;
|
||||
}
|
||||
|
@ -37,9 +43,17 @@ server {
|
|||
location /wiki/ {
|
||||
proxy_pass http://127.0.0.1:5001/;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_redirect off;
|
||||
sub_filter 'href="/' 'href=/wiki/';
|
||||
sub_filter 'src="/' 'src=/wiki/';
|
||||
proxy_redirect / /wiki/;
|
||||
#rewrite '/' '/wiki';
|
||||
sub_filter_once off;
|
||||
sub_filter 'href="/' 'href="/wiki/';
|
||||
sub_filter 'src="/' 'src="/wiki/';
|
||||
sub_filter 'action="/' 'action="/wiki/';
|
||||
# Overkill:
|
||||
#sub_filter '="/' '="/wiki/';
|
||||
#sub_filter ':5001/' '/wiki/';
|
||||
#sub_filter 'Location: /' 'Location: /wiki/';
|
||||
#sub_filter '_login' '_test';
|
||||
}
|
||||
|
||||
location / { try_files $uri @mamweb_prod; }
|
||||
|
|
Loading…
Reference in a new issue