Skip to content
New issue

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

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

Already on GitHub? # to your account

Add $NGINX_WP_NOT_FOUND_REGEX to WordPress Template #73

Merged
merged 2 commits into from
Feb 26, 2022

Conversation

ChexWarrior
Copy link
Contributor

This PR adds a variable $NGINX_WP_NOT_FOUND_REGEX that is similar to the $NGINX_DRUPAL_NOT_FOUND_REGEX found in the Drupal NGINX templates. For the default value I copied the regex that already led to a 404 in the WordPress template and added some additional regex that will block any attempts to access composer or npm files.

@ChexWarrior ChexWarrior changed the title Add $NGINX_WP_NOT_FOUND_REGEX to WordPress NGINX Config Add $NGINX_WP_NOT_FOUND_REGEX to WordPress Template Feb 25, 2022
@csandanov csandanov merged commit 4c67938 into wodby:master Feb 26, 2022
@ChexWarrior ChexWarrior deleted the add-ignore-regex-wordpress branch February 26, 2022 15:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants