|
@ -26,6 +26,12 @@ server { |
|
|
|
|
|
|
|
|
client_max_body_size 50M; |
|
|
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/ { |
|
|
location /static/ { |
|
|
root /akce/mam/www/mamweb-prod/; |
|
|
root /akce/mam/www/mamweb-prod/; |
|
|
} |
|
|
} |
|
@ -37,9 +43,17 @@ server { |
|
|
location /wiki/ { |
|
|
location /wiki/ { |
|
|
proxy_pass http://127.0.0.1:5001/; |
|
|
proxy_pass http://127.0.0.1:5001/; |
|
|
proxy_set_header X-Real_IP $remote_addr; |
|
|
proxy_set_header X-Real_IP $remote_addr; |
|
|
proxy_redirect off; |
|
|
proxy_redirect / /wiki/; |
|
|
sub_filter 'href="/' 'href=/wiki/'; |
|
|
#rewrite '/' '/wiki'; |
|
|
sub_filter 'src="/' 'src=/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; } |
|
|
location / { try_files $uri @mamweb_prod; } |
|
|