Home Forums WordPress Plugins Hide My WP Nginx Server: How to?

This topic is: resolved
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #4782
    Lateralus578
    Post count: 9

    Hej there,
    Thanks for this wonderful plugin! I think it’s an awesome idea πŸ™‚
    Although, I’m having difficulties installing it. If you have time, could you please help me out? Or your don’t provide support for Nginx Server Issues? πŸ™‚

    My hosting is on getflywheel.com They run Nginx servers. Also, I don’t have access to any server configuration files. I have installed the plugin and selected the Medium Privacy Scheme Recommended Option (tried all of them later) in the plugin settings page. Now I have around 70 errors, in particular 90% of them are .CSS file 404 errors.

    I’ve read in documentation, that if I have the Nginx Server I need to add some custom data to the configuration file. What should I ask my hosting company to do?

    When I add in WP admin panel this &nginx_config=1 I get this:
    Is it this what ISP needs to add to the config file? If so, why it generates hide_my_wp=1234 if I’ve changed it in the General Settings to a different path?

    # BEGIN Hide My WP

    rewrite ^/other/(.*) /wp-includes/$1?fE_hide_my_wp=1234 last;
    rewrite ^/file/(.*) /wp-content/uploads/$1?fE_hide_my_wp=1234 last;
    rewrite ^/ext/(.*) /wp-content/plugins/$1?fE_hide_my_wp=1234 last;
    rewrite ^/skin/main\.css /?style_wrapper=1&fE_hide_my_wp=1234 last;
    rewrite ^/skin/style.css /nothing_404_404?fE_hide_my_wp=1234 last;
    rewrite ^/skin/(.*) /wp-content/themes/listify/$1?fE_hide_my_wp=1234 last;
    rewrite ^/ajax /wp-admin/admin-ajax.php?fE_hide_my_wp=1234 last;
    rewrite ^/inc/(.*) /wp-content/$1?fE_hide_my_wp=1234 last;
    rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?fE_hide_my_wp=1234 last;
    rewrite ^/(((wp-content|wp-includes)/([A-Za-z0-9\-\_\/]*))|(wp-admin/(!network\/?)([A-Za-z0-9\-\_\/]+)))(\.txt|/)$ /nothing_404_404?fE_hide_my_wp=1234 last;

    # END Hide My WP

    I’ve also attached a Debug Report, in case you need it.

    Hope you will help πŸ™‚
    Thanks

    Attachments:
    You must be logged in to view attached files.
    #4786
    Suman M.
    Post count: 12480

    Hi, yes, you need to add those rules (between #BEGIN Hide My WP and #END Hide My WP) in your Nginx configuration file. It is usually located in /etc/nginx/nginx.conf or /etc/nginx/conf/nginx.conf. Don’t simply add rules to the beginning or the end of file. Make sure they are in server block.

    To remove secret code “hide_my_wp=1234” from the rules, disable/uncheck “full hide” mode from HMWP general settings tab.

    • This reply was modified 9 years, 9 months ago by Suman M..
    #4789
    Lateralus578
    Post count: 9

    Hi, thanks for your quick answser. I’ll email my ISP, cause I don’t have access to this file.
    In regards to β€œhide_my_wp=1234β€³ – if I’ll disable/uncheck β€œfull hide” Does this means I won’t be able to set my own path to wp-admin or it’s just to remove from the rules? I want to have, for example, β€œhello_wp=9876β€³ so instead of writing in the config file this:
    rewrite ^/other/(.*) /wp-includes/$1?fE_hide_my_wp=1234 last;
    I need to write this
    rewrite ^/other/(.*) /wp-includes/$1?fE_hello_wp=9876 last;

    and after the config file has been modified go to
    WP > HMWP > General Settings > and add “hello_wp=9876” ? πŸ™‚

    #4790
    Lateralus578
    Post count: 9

    OK, I understand now how it works πŸ™‚
    Step 1: Select Scheme and Save
    Step 2: Go to General Settings and change path, for example, “good_bye=456479”
    Step 3: Go back to the Start Tab and change the browser link by adding at the end &nginx_config=1

    Only then I was able to see the fixed link:
    rewrite ^/other/(.*) /wp-includes/$1?fE_good_bye=456479 last;

    So, no need to answer this πŸ™‚ πŸ™‚

    Thanks!

    #4791
    Lateralus578
    Post count: 9

    Hello there πŸ™‚

    Ok, I’m in the middle of the process. Could you please help?
    I’ve asked my ISP to add rules to the config file. He added. Everything works fine now. All CSS files have correct paths.

    Problem:
    Homepage is working, but when I go to any other pages – it gives me the 404 error.
    And I have no idea where to start now, before I had some errors, but know it give me 404 for the whole page πŸ™‚ πŸ™‚

    #4794
    Suman M.
    Post count: 12480

    Hi, make sure that Permalinks is set to custom in your wordpress backend.
    If it’s still the issue then please let us know your website details as private reply so that we can look into it further.

    #4795
    Lateralus578
    Post count: 9
    This reply has been marked as private.
    #4802
    Lateralus578
    Post count: 9
    This reply has been marked as private.
    #4814
    Suman M.
    Post count: 12480

    In Permalinks settings, if I select any other option than default, it’s adding index.php. It’s seems to server config related. Please contact your hosting provider regarding this issue.

    #4819
    Lateralus578
    Post count: 9

    Hi There,
    Ok, thanks! I’ve already contacted them, now I wait πŸ™‚

    I think this is it, the plugin is working and the rest is up to ISP. You have done everything you could from your side. Thanks for your support. Have a nice day!

    Best Regards

    P.S. How do I close the ticket?

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

You must be logged in to reply to this topic.