Home › Forums › WordPress Plugins › Hide My WP › Nginx Server: How to?
- This topic has 9 replies, 2 voices, and was last updated 9 years, 9 months ago by
Lateralus578.
-
AuthorPosts
-
September 27, 2015 at 1:35 pm #4782
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 π
ThanksAttachments:
You must be logged in to view attached files.September 27, 2015 at 2:36 pm #4786Hi, 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..
September 27, 2015 at 4:51 pm #4789Hi, 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” ? πSeptember 27, 2015 at 4:58 pm #4790OK, 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=1Only 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!
September 27, 2015 at 5:41 pm #4791Hello 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 π πSeptember 27, 2015 at 9:10 pm #4794Hi, 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.September 27, 2015 at 11:19 pm #4795This reply has been marked as private.September 28, 2015 at 10:27 am #4802This reply has been marked as private.September 29, 2015 at 7:17 am #4814In 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.
September 29, 2015 at 8:19 am #4819Hi 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?
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.