Created
November 11, 2020 05:39
-
-
Save siassaj/3444b521b83dfca979bd0e6275aae18b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /robots.txt { | |
sub_filter 'webflow.mysite.com.au' $host; | |
sub_filter_once off; | |
sub_filter_types *; | |
proxy_pass https://webflow.mysite.com.au/robots.txt; | |
proxy_set_header Host webflow.mysite.com.au; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header Accept-Encoding ""; # disallow gzip so that we can rewrite | |
proxy_ssl_server_name on; | |
} | |
location /sitemap.xml { | |
sub_filter 'webflow.mysite.com.au' 'mysite.com.au'; | |
sub_filter_once off; | |
sub_filter_types *; | |
proxy_pass https://webflow.mysite.com.au/sitemap.xml; | |
proxy_set_header Host webflow.mysite.com.au; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header Accept-Encoding ""; # disallow gzip so that we can rewrite | |
proxy_ssl_server_name on; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment