If you know about NGINX and servers, Webinoly is for you!
0 votes
122 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

1 Answer

0 votes
by Expert
Maybe you should see inside the "includes" or maybe the Nginx "apps.d" folder could be useful in this case.
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.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

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

...