Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
169 views
by Rookie
Hi,

First of all, thank you for this awesome tool :)

I have a question of how do I add Nginx rule before the location block? It's required when using WP Hide.

The following code need to be placed before location / block.
 

# BEGIN WP Hide & Security Enhancer

       rewrite ^/71b6a55405eb4b0ed07954406cace2c6/rewrite_test /wp-content/plugins/wp-hide-security-enhancer-pro/include/rewrite-confirm.php last;

# END WP Hide & Security Enhancer

# BEGIN WP Hide & Security Enhancer

         rewrite ^/site-login(.*) /wp-login.php$1 last;

# END WP Hide & Security Enhancer

I've already looking into sites-available/mywebsite.com but there's no

location / {

.........

}

So where do I have to put the WP hide rule above? Thank you

Please log in or register to answer this question.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...