nginx · Jun 8, 2021 secure wordpress with nginx config file # Global restrictions configuration file. # Designed to be included in any server {} block. location = /favicon.ico { log_not_found off; access_log off; } location =…
nginx · May 2, 2021 how to setup W3 total cache on nginx server If you visit your-domain.com/wp-admin/admin.php?page=w3tc_install W3 Total Cache will show you all the additional configuration information that you need. Included in that information will be some Nginx configurations which…
nginx · Apr 18, 2021 use simply static cache to instead fast-cgi cache to boost your wordpress 10x Simply Static is a static site generator for WordPress that helps you create a static site that you can serve separately from your WordPress installation. This…
nginx · Apr 15, 2021 How to Configure nginx Reverse Proxy WordPress Cache for Apache Apache is not known for its speed. On the contrary, Apache has garnered a reputation for being rather bloated and performing well under high traffic. However,…
nginx · Apr 7, 2021 how to setup nginx proxy cache ? add in http {} proxy_cache_path D:/nginx-1.18.0/cache levels=1:2 keys_zone=cache_one:500m inactive=1d max_size=30g; proxy_cache_key "$host$request_uri$cookie_user"; server {} config server { listen 80; server_name shopaii.net www.shopaii.net; proxy_redirect off; server_name_in_redirect off;…
nginx · Mar 18, 2021 opencart 3 nginx rewrite conf nginx rewrite rule on nginx #disallow path or file location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) { return 404; } #一键申请SSL证书验证目录相关设置 location ~ \.well-known{ allow all; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$…
nginx · Nov 15, 2020 nginx pagespeed config # Enable pagespeed module by putting the following in http context pagespeed on; pagespeed Domain example.com; pagespeed DownstreamCachePurgeLocationPrefix http://lb1.i; pagespeed DownstreamCachePurgeMethod PURGE; pagespeed DownstreamCacheRewrittenPercentageThreshold 95; #…
nginx · Jul 25, 2020 NGINX: Image Server with image_filter & secure_link modules https://zaiste.net/posts/nginx-image-server-image-filter-secure-link-modules/ NGINX with enabled image_filter and secure_links modules allows to quickly build an image server. The server can resize and cache images. It acts as a reverse-proxy between the external…
nginx · Jul 25, 2020 nginx image-proxy server conf Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G;…
nginx · Jun 19, 2020 block wordpress file uploaded php file rum add below code to nginx .conf file. # block upload php files location ~* /(?:uploads|files|wp-content|wp-includes)/.*.php$ { deny all; access_log off; log_not_found off; }
nginx · Jun 16, 2020 nginx proxy google blogger server { listen 80; server_name ssx8.com; gzip off; location / { proxy_pass https://www.ssx8.com; rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent; } } server { listen 443 ssl; server_name ssx8.com…
nginx · Jun 4, 2020 Tutorial: Install a LAMP Web Server on Amazon Linux Tutorial: Install a LAMP Web Server on Amazon Linux 2 PDF Kindle RSS The following procedures help you install an Apache web server with PHP and MariaDB (a…