Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGX-878: Update Nginx Site Configuration #72

Merged
merged 1 commit into from
Jun 10, 2024
Merged

NGX-878: Update Nginx Site Configuration #72

merged 1 commit into from
Jun 10, 2024

Conversation

combssm
Copy link
Member

@combssm combssm commented Jun 4, 2024

Add two additional pieces of logic into the server hostname block.

  1. Requests to 'wp-json' are able to be proxied as if the request was made to the site url
  2. Requests with the 'rest_route' query string are able to be proxied as if the request was made to the site url

All other requests to the server hostname will not be proxied as if they were made to the site url. This prevents the entire WordPress site from being accessible over the server hostname.

Add two additional pieces of logic into the server hostname block.
  - Requests to 'wp-json' are able to be proxied as if the request was made to the site url
  - Requests with the 'rest_route' query string are able to be proxied as if the request was made to the site url

All other requests to the server hostname will not be proxied as if they were made to the site url.  This prevents the entire WordPress site from being accessible over the server hostname.
@combssm combssm merged commit 9dfd011 into master Jun 10, 2024
4 of 7 checks passed
@combssm combssm deleted the NGX-878 branch June 10, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant