Browsing: nginx
# Global restrictions configuration file. # Designed to be included in any server {} block. location = /favicon.ico { log_not_found…
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…
Simply Static is a static site generator for WordPress that helps you create a static site that you can serve…
Apache is not known for its speed. On the contrary, Apache has garnered a reputation for being rather bloated and…
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…
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{…
# Enable pagespeed module by putting the following in http context pagespeed on; pagespeed Domain example.com; pagespeed DownstreamCachePurgeLocationPrefix http://lb1.i; pagespeed…
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…
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of…
add below code to nginx .conf file. # block upload php files location ~* /(?:uploads|files|wp-content|wp-includes)/.*.php$ { deny all; access_log off;…
server { listen 80; server_name ssx8.com; gzip off; location / { # proxy_pass https://www.ssx8.com; rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent; } }…
Tutorial: Install a LAMP Web Server on Amazon Linux 2 PDF Kindle RSS The following procedures help you install an…
#install nginx with fast-cgi module and php 7.2 and maria db 10.3 #download this script #https://www.vpseo.com/media/script/installlnmp.sh.txt #cat /usr/local/src/installlnmp.sh yum -y…
#https://www.vpseo.com/2019/10/16/wp-super-cache-and-nginx-config/ #https://www.vpseo.com/2019/09/06/wp-rocket%E9%85%8D%E5%90%88nginx%E5%AE%9E%E7%8E%B0%E7%BA%AF%E9%9D%99%E6%80%81%E5%8C%96%E5%8A%A0%E9%80%9Fwordpress%EF%BC%8Crocket-nginx/ now you can use the simply static and wp-rocket plugin together. below code is edit base on…
#vi /etc/nginx/conf.d/wordpress-multi.conf server { listen *:80; listen [::]:80; server_name 9wp.net yourwebsite.com; return 301 http://www.$host$request_uri; } server { listen *:80; listen…
location / { proxy_pass http://ghs.google.com; proxy_set_header Host w.mai1.me; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Cookie “”; proxy_hide_header…
WP Super cache easyengine (ee) note: If you are using easyengine, you can accomplish everything in this article using following commands: ee…
server { large_client_header_buffers 4 32k; listen 80; root /var/www/html; server_name cdn.jhhearingaids.com; index index.php index.html; rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; rewrite…
This is a very short snippet post so you need to have knowledge about how to configure and customize your…
nginx 301 redirect to www and https website: http://www.cl-light.com -> https://www.cl-light.com {http://cl-light.com + https://cl-light.com} -> https://www.cl-light.com server { listen 80;…
server { listen *:80; server_name www.shopym.com *.shopym.com shopym.com; root /var/www/html; if ($http_host != “www.shopym.com”) { rewrite ^ http://www.shopym.com$request_uri permanent; }…
vi /etc/nginx/conf.d/gzipfcgi.conf gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.1; gzip_comp_level 9; gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php;…