Simplify proxy pass
This commit is contained in:
@@ -29,12 +29,8 @@ server {
|
||||
# rewrite ^/wp/(.*)$ /$1 break;
|
||||
# return 301 http://$host$request_uri;
|
||||
proxy_pass http://triamp2;
|
||||
include snippets/proxy_header.conf;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_set_header Host wp2.triton.fet.at;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X_FORWARDED_SSL on;
|
||||
proxy_set_header REQUEST_SCHEME https;
|
||||
proxy_set_header HTTP_X_FORWARDED_SSL on;
|
||||
proxy_redirect default;
|
||||
|
||||
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
||||
|
||||
Reference in New Issue
Block a user