/etc/nginx/conf.d/fastcgi_cache.conf # DoS対策 limit_req_zone $binary_remote_addr zone=limit_zone:10m rate=50r/s; limit_req zone=limit_zone burst=30 nodelay; fastcgi_cache_path /var/run/nginx-fas …
ngx_cache_purgeモジュールを有効にする為のNginx設定

var 優技録 = []string{ "Golang", "Vue.js", "AWS", "PHP", "DB", "IaC", "SRE"}
/etc/nginx/conf.d/fastcgi_cache.conf # DoS対策 limit_req_zone $binary_remote_addr zone=limit_zone:10m rate=50r/s; limit_req zone=limit_zone burst=30 nodelay; fastcgi_cache_path /var/run/nginx-fas …
クラウドなんかはSSDだったりするのですが、お客様の事情でHDDのVPSサーバにする必要があったりします。そんな時に使えるよ! # vi /etc/fstab # # /etc/fstab # Created by anaconda on Fri Aug 21 10:41:32 2015 # # Accessible filesystems, by reference, …
PHP-FPMユーザと/var/lib/nginxのユーザを合わせてあげることで解決する。 # tail -f /var/log/nginx/www.example.net_error.log [crit] 948#0: *267 open() “/var/lib/nginx/tmp/fastcgi/6/08/0000000086” failed (13: Permission de …
Let’s EncryptでSSL化! Nginxにインストール 寄稿しました。詳しくは上記記事を見てください(๑❛ᴗ❛๑ ) Certbotのインストール # cd /usr/local/src # git clone https://github.com/certbot/certbot # cd certbot/ # ./certbot-auto -n …
タブレット用のUAはPC用に設定。 #set $mobile “”; #if ($http_user_agent ~* ‘(Android|(blackberry|\bBB10\b|rim tablet os)|(PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino)|(Symbian|SymbOS|Serie …
## Index Of 公開用ディレクトリ location /daikoukai/ { autoindex on; } # nginx -t # systemctl reload nginx Amazonおすすめ iPad 9世代 2021年最新作 iPad 9世代出たから買い替え。安いぞ!🐱 初めてならiPad。Kind …
Nginxの場合、 パーマリンクの仕様に従って設定を合わせる必要があります。 try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?q=$uri&$args; どちらかで対応できるかな? try_files $uri $uri/ /index.php?$args /index …
Apache # systemctl reload httpd Nginx # systemctl reload nginx httpdのgracefulが廃止されて、reloadになったということ。 Nginxは元からreload 分かりやすくなりました。 Amazonおすすめ iPad 9世代 2021年最新作 iPad …
Nginx キャッシュさせない disable cache 無効化 詳しくは上記を。 server { listen 80; # アクセス可能なIPアドレス、もしくはドメイン server_name 192.168.11.27; root /var/www/html; index index.html; proxy_set_header X-Real-IP $rem …