Home › Forums › WordPress Plugins › Hide My WP › Flatsome with Nginx server don't config to good work
- This topic has 4 replies, 2 voices, and was last updated 5 years, 6 months ago by
Suman M..
-
AuthorPosts
-
November 10, 2019 at 9:39 am #28200
Debug Report:
{"li":"54d74657482-c6770e-44567cb-9056721-0ef9febfc56778f","import_options":"","export_options":"","nginx_config":"","debug_report":"","help":"","undo":"","custom_404":"0","custom_404_page":"","trusted_user_roles":"","replace_mode":"quick","hide_wp_login":"on","login_query":"hide_my_wp","admin_key":"1234","hide_wp_admin":"on","spy_notifier":"","customized_htaccess":"","separator":"","cdn_path":"","email_from_name":"Following U","email_from_address":"noreply@testmail.com","antispam":"on","full_hide":"","hide_other_wp_files":"on","disable_directory_listing":"on","disable_canonical_redirect":"","hide_admin_bar":"on","avoid_direct_access":"","direct_access_except":"index.php, wp-comments-post.php, wp-includes/js/tinymce/wp-tinymce.php, xmlrpc.php, wp-cron.php","exclude_theme_access":"on","exclude_plugins_access":"on","new_theme_path":"/template","new_style_name":"main.css","minify_new_style":"quick","new_include_path":"/lib","new_plugin_path":"/modules","rename_plugins":"all","new_upload_path":"/file","replace_comments_post":"/user_submit.php","replace_admin_ajax":"do_ajax.php","new_content_path":"","separator2":"","new_login_path":"","new_admin_path":"","separator3":"","api_disable":"0","api_base":"rest_api","api_query":"rest_api","author_enable":"1","author_base":"profile","author_query":"user","author_without_base":"","feed_enable":"1","feed_base":"index.xml","feed_query":"sitefeed","post_enable":"1","post_base":"/%postname%/","post_query":"article_id","page_enable":"1","page_base":"","page_query":"page_num","paginate_enable":"1","paginate_base":"/page/","paginate_query":"go","category_enable":"1","category_base":"","category_query":"topic","tag_enable":"1","tag_base":"","tag_query":"keyword","search_enable":"1","search_base":"search","search_query":"","nice_search_redirect":"on","disable_archive":"","disable_other_wp":"","remove_html_comments":"","replace_javascript_path":"1","remove_feed_meta":"on","remove_other_meta":"on","remove_default_description":"on","remove_ver_scripts":"","remove_body_class":"","remove_menu_class":"","clean_post_class":"","clean_new_style":"","replace_in_ajax":"","replace_wpnonce":"","internal_css":"","internal_js":"","enable_ids":"","ids_level":"0","ids_admin_include":"","ids_cookie":"","logger_link":"","log_ids_min":"1","block_ids_min":"20","email_ids_min":"30","exception_fields":"REQUEST.commentrnPOST.commentrnREQUEST.permalink_structurernPOST.permalink_structurernREQUEST.selectionrnPOST.selectionrnREQUEST.contentrnPOST.contentrnREQUEST.__utmzrnCOOKIE.__utmzrnREQUEST.s_persrnCOOKIE.s_persrnREQUEST.user_passrnPOST.user_passrnREQUEST.pass1rnPOST.pass1rnREQUEST.pass2rnPOST.pass2rnREQUEST.passwordrnPOST.passwordrnPOST.hide_my_wp.%rnREQUEST.hide_my_wp.%rnPOST.%import%rnREQUEST.%import%rnREQUEST.newcontentrnPOST.newcontentrnREQUEST.remember_%","ids_html_fields":"","separator4":"","trust_network":"on","help_trust_network":"on","blocked_ips":"","blocked_ip_message":"You are blocked. Please contact site administrator if you think there is a problem.","blocked_countries":"","replace1":"","auto_config_plugins":"","replace2":"","replace_in_html":"","db_ver":"5.5.3"}
Any refer for me? thanks,
-
This topic was modified 5 years, 6 months ago by
KuJangSung.
November 10, 2019 at 9:44 am #28202nginx.conf
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; gzip on; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; gzip_vary on; gzip_types text/plain text/css text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript; include /etc/nginx/conf.d/*.conf; }
wordpress_https.conf
upstream php-handler-https { server 127.0.0.1:9000; #server unix:/var/run/php5-fpm.sock; } server { listen 443 ssl default_server; server_name mydomain.com; #server_name wordpress.example.com; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; root /var/www/html/; index index.php; # set max upload size client_max_body_size 2G; fastcgi_buffers 64 4K; access_log /var/log/nginx/wordpress_https_access.log combined; error_log /var/log/nginx/wordpress_https_error.log; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location / { # BEGIN Hide My WP rewrite ^/lib/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?xFKy_hide_my_wp=1234 last; rewrite ^/lib/(.*) /wp-includes/$1?xFKy_hide_my_wp=1234 last; rewrite ^/file/(.*) /wp-content/uploads/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/eba87a19/(.*) /wp-content/plugins/code-snippets/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f1220e64/(.*) /wp-content/plugins/contact-form-7/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/69635ced/(.*) /wp-content/plugins/envato-market/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f0a41747/(.*) /wp-content/plugins/google-sitemap-generator/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/c58c7092/(.*) /wp-content/plugins/query-monitor/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/5ab2cc27/(.*) /wp-content/plugins/regenerate-thumbnails/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/375a0e8e/(.*) /wp-content/plugins/google-site-kit/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/3cb0b6ae/(.*) /wp-content/plugins/woo-variation-swatches/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/e6a631fd/(.*) /wp-content/plugins/woocommerce/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/6d3ec25b/(.*) /wp-content/plugins/woocommerce-advanced-bulk-edit/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/15de0f1a/(.*) /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/35a94f39/(.*) /wp-content/plugins/woocommerce-colororimage-variation-select/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/8d2f57de/(.*) /wp-content/plugins/wp-optimize/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f779be8d/(.*) /wp-content/plugins/wp-amp/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/e914ccc7/(.*) /wp-content/plugins/wp-crontrol/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/d368b5a8/(.*) /wp-content/plugins/wp-mail-smtp/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/(.*) /wp-content/plugins/$1?xFKy_hide_my_wp=1234 last; rewrite ^/template/main\.css /?style_wrapper=1&xFKy_hide_my_wp=1234 last; rewrite ^/template/style\.css /nothing_404_404?xFKy_hide_my_wp=1234 last; rewrite ^/template/(.*) /wp-content/themes/flatsome/$1?xFKy_hide_my_wp=1234 last; rewrite ^/user_submit\.php /wp-comments-post.php?xFKy_hide_my_wp=1234 last; rewrite ^/do_ajax\.php /wp-admin/admin-ajax.php?xFKy_hide_my_wp=1234 last; rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?xFKy_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?xFKy_hide_my_wp=1234 last; # END Hide My WP try_files $uri $uri/ /index.php?$args ; } location ~* \.(htaccess|htpasswd) { deny all; } location ~ \.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; fastcgi_pass php-handler-https; fastcgi_read_timeout 60s; } # set long EXPIRES header on static assets location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; access_log off; } }
wordpress_http.conf
upstream php-handler-http { server 127.0.0.1:9000; #server unix:/var/run/php5-fpm.sock; } server { listen 80 default_server; server_name mydomain.com; #server_name wordpress.example.com; root /var/www/html/; index index.php; # set max upload size client_max_body_size 2G; fastcgi_buffers 64 4K; access_log /var/log/nginx/wordpress_http_access.log combined; error_log /var/log/nginx/wordpress_http_error.log; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location / { # BEGIN Hide My WP rewrite ^/lib/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?xFKy_hide_my_wp=1234 last; rewrite ^/lib/(.*) /wp-includes/$1?xFKy_hide_my_wp=1234 last; rewrite ^/file/(.*) /wp-content/uploads/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/eba87a19/(.*) /wp-content/plugins/code-snippets/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f1220e64/(.*) /wp-content/plugins/contact-form-7/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/69635ced/(.*) /wp-content/plugins/envato-market/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f0a41747/(.*) /wp-content/plugins/google-sitemap-generator/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/c58c7092/(.*) /wp-content/plugins/query-monitor/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/5ab2cc27/(.*) /wp-content/plugins/regenerate-thumbnails/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/375a0e8e/(.*) /wp-content/plugins/google-site-kit/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/3cb0b6ae/(.*) /wp-content/plugins/woo-variation-swatches/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/e6a631fd/(.*) /wp-content/plugins/woocommerce/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/6d3ec25b/(.*) /wp-content/plugins/woocommerce-advanced-bulk-edit/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/15de0f1a/(.*) /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/35a94f39/(.*) /wp-content/plugins/woocommerce-colororimage-variation-select/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/8d2f57de/(.*) /wp-content/plugins/wp-optimize/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/f779be8d/(.*) /wp-content/plugins/wp-amp/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/e914ccc7/(.*) /wp-content/plugins/wp-crontrol/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/d368b5a8/(.*) /wp-content/plugins/wp-mail-smtp/$1?xFKy_hide_my_wp=1234 last; rewrite ^/modules/(.*) /wp-content/plugins/$1?xFKy_hide_my_wp=1234 last; rewrite ^/template/main\.css /?style_wrapper=1&xFKy_hide_my_wp=1234 last; rewrite ^/template/style\.css /nothing_404_404?xFKy_hide_my_wp=1234 last; rewrite ^/template/(.*) /wp-content/themes/flatsome/$1?xFKy_hide_my_wp=1234 last; rewrite ^/user_submit\.php /wp-comments-post.php?xFKy_hide_my_wp=1234 last; rewrite ^/do_ajax\.php /wp-admin/admin-ajax.php?xFKy_hide_my_wp=1234 last; rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?xFKy_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?xFKy_hide_my_wp=1234 last; # END Hide My WP try_files $uri $uri/ /index.php?$args ; } location ~* \.(htaccess|htpasswd) { deny all; } location ~ \.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass php-handler-http; fastcgi_read_timeout 60s; } # set long EXPIRES header on static assets location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; access_log off; } }
November 10, 2019 at 10:13 pm #28206Hi, I checked the nginx config content above and could see that you have added HMWP rules within location{} block. Please remove HMWP rules from there and add it within server{} block (you can add it just before closing braces } of server block), and then restart Nginx. Let us know!
November 11, 2019 at 1:55 am #28209in this video guide https://www.youtube.com/watch?v=UXJANXZ8OYo
I see HMWP rules within location{} blockNovember 11, 2019 at 1:19 pm #28214Hi, we’ll re-check the instructions given in the video above.
For now, can you please add HMWP rules within server{} block as mentioned above and restart Nginx? Let us know! Thanks! -
This topic was modified 5 years, 6 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.