Home Forums WordPress Plugins Hide My WP Error in page title when I click on "Nginx configuration"

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16730

    Hello support team,

    I am having hard time doing the right setup on nginx. I use a separate block for my wordpress installation under:

    /var/www/example.com/html/

    My Rehub theme is located at:

    /var/www/example.com/html/wp-content/themes/rehub

    but it also has some child themes and I use one of them called ‘revendor’ which is located at:

    /var/www/example.com/html/wp-content/themes/rehub-vendor

    I setup my site’s nginx conf file as follows:

    ` location / {
    rewrite ^/var/www/example.com/html/wp-content/themes/rehub/(.*) /wp-content/themes/rehub/$1?sVbci_hide_my_wp=1234 last;
    rewrite ^/var/www/example.com/html/wp-content/themes/rehub/\.css /?parent_wrapper=1&sVbci_hide_my_wp=1234 last;
    rewrite ^/var/www/example.com/html/wp-content/themes/rehub/(.*) /wp-content/themes/rehub/$1?sVbci_hide_my_wp=1234 last;
    try_files $uri $uri/ /index.php?q=$uri&$args;

    }

    but I still get an error when I press “nginx configuration’ button in your plugin’s settings.

    What exactly do I need to do to make this work and hid my wp?

    Please let me know if you need the exact path of anything on my server and I can add it here?

    Thanks and look forward to hearing from you.
    Kind regards,
    Z

    #16745
    Suman M.
    Post count: 12480

    Hi, it seems like you have added HMWP rules within the “location” block. You’ll need to add the rules within server block like below:

    server {
    ….
    ….
    location {


    }

    << HMWP rules here >>

    }

    Please follow these steps:

    – in HMWP Start Tab, set “Medium Pripacy – More Compatibility” settings scheme and click on “Save Settings” button

    – In Start tab you should see Nginx Configuration button. If you don’t see this button, add &nginx_config=1 to HMWP settings page URL to see Nginx rewrite rules. For example:
    http://yourdomain.com/wp-admin/options-general.php?page=hide_my_wp&die_message=nginx

    – Now add those lines (rewrite rules) to your Nginx configuration file. It’s usually located in /etc/nginx/nginx.conf or /etc/nginx/conf/nginx.conf or /etc/nginx/sites-available/domainname.com

    – restart nginx server

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.