ユーザ用ツール

サイト用ツール


50_dialy:2021:04:29

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
50_dialy:2021:04:29 [2022/03/17 00:00] matsui50_dialy:2021:04:29 [2023/05/17 01:26] (現在) matsui
行 39: 行 39:
     volumes:     volumes:
       - ./config:/config       - ./config:/config
 +    #  - /tmpfs:/var/caceh/nginx
     #ports:     #ports:
     #  - 80:80     #  - 80:80
行 54: 行 55:
  
 https://[hostname]/install.php https://[hostname]/install.php
 +
 +
 +===== tmpfs =====
 +
 +tmpfsにfastcgi_cacheを置く場合、tmpfsの設定を入れる
 +
 +<code|/etc/fstab>
 +tmpfs           /tmpfs            tmpfs   defaults,size=1024m,noatime,mode=1777      0       0
 +</code>
 +
 +<code>
 +mkdir /tmpfs
 +mount /tmpfs
 +</code>
  
 ===== X-Forwared-For ===== ===== X-Forwared-For =====
行 63: 行 78:
  real_ip_header     X-Forwarded-For;  real_ip_header     X-Forwarded-For;
 </code> </code>
 +
 +このX-Forwared-Forを入れないと、dockerの場合[[dokuwiki:plugin:counter]]もうまくカウントしてくれない。
  
 ===== FastCGI cache ===== ===== FastCGI cache =====
  
 +http{}の中にfastcgi_cache_pathとfastcgi_cache_keyの記述を追加
 <code|config/nginx/nginx.conf> <code|config/nginx/nginx.conf>
- fastcgi_cache_path /config/cache/nginx levels=1:2 keys_zone=cache-zone:30m max_size=2048M inactive=600m; +http { 
- fastcgi_cache_key "$scheme$request_method$host$request_uri";+    fastcgi_cache_path /var/caceh/nginx levels=1:2 keys_zone=cache-zone:30m max_size=1024M inactive=600m; 
 +    fastcgi_cache_key "$scheme$request_method$host$request_uri";
 </code> </code>
  
50_dialy/2021/04/29.1647475254.txt.gz · 最終更新: 2022/03/17 00:00 by matsui