Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
November 11, 2019 at 1:55 am in reply to: Flatsome with Nginx server don't config to good work #28209
in this video guide https://www.youtube.com/watch?v=UXJANXZ8OYo
I see HMWP rules within location{} blockNovember 10, 2019 at 9:44 am in reply to: Flatsome with Nginx server don't config to good work #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; } }
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)