Home Forums WordPress Plugins Hide My WP Can you give me a sample nginx.conf file?

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8311
    uberspaceguru
    Post count: 1

    Hi,

    I’ve been trying to add the configuration codes to my nginx.conf file. But getting an error message when I reload the server. Can you give me a sample nginx.conf file so I understand where to add the code perfectly.

    Thanks

    #8315
    Suman M.
    Post count: 12480

    Hi, if it’s Nginx server and WP single site, then follow these steps:

    – goto HMWP >> ‘Start’ Tab >> ‘Medium Pripacy – More Compatibility’ scheme >> click ‘Save Settings’

    – 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&nginx_config=1

    – Now add those lines (rewrite rules) to your Nginx configuration file (within server block). 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

    #8339
    uberspaceguru
    Post count: 1

    Hi Suman,

    Finally, I’m able to add the configuration file. Thank you so much for the support.

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

You must be logged in to reply to this topic.