Skip to content

Instantly share code, notes, and snippets.

@gsf
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsf/791e161fc9e7aa7008b9 to your computer and use it in GitHub Desktop.
Save gsf/791e161fc9e7aa7008b9 to your computer and use it in GitHub Desktop.
server {
#server_name business.phila.gov;
include https_redirect.conf;
location / {
proxy_set_header Host business.phila.gov;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://170.115.248.33/;
}
# Mimic WP robots.txt for health check
location /robots.txt {
return 200 "User-agent: *\nDisallow: /wp-admin/";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment