Skip to content

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
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.

2 participants