ユーザ用ツール

サイト用ツール


serverapps:nextcloud:04.nginx_config

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
serverapps:nextcloud:04.nginx_config [2023/08/07 04:53] – [/usr/local/etc/nginx/nginx.conf] hayashiserverapps:nextcloud:04.nginx_config [2023/08/26 10:55] (現在) hayashi
行 7: 行 7:
 \\ \\
  
 +===== rc.conf =====
 +
 +/etc/rc.confまたは/etc/rc.conf.localに記述
 +
 +  php_fpm_enable="YES"
 +  nginx_enable="YES"
 ===== /usr/local/etc/nginx/nginx.conf ===== ===== /usr/local/etc/nginx/nginx.conf =====
  
行 21: 行 27:
   worker_connections 1024;   worker_connections 1024;
   multi_accept        on;   multi_accept        on;
-  accept_mutex on;+  accept_mutex        on;
   accept_mutex_delay  100ms;     accept_mutex_delay  100ms;  
 } }
行 47: 行 53:
   server {   server {
     listen 80;     listen 80;
-    listen [::]:80;+    listen [::]:80;
     # server_name cloud.example.com;     # server_name cloud.example.com;
  
行 57: 行 63:
  
     # Path to the root of your installation     # Path to the root of your installation
-    root /var/www/nextcloud;+    #root /var/www/nextcloud; 
 +    root /usr/local/www/nextcloud;
  
     # HTTP response headers borrowed from Nextcloud `.htaccess`     # HTTP response headers borrowed from Nextcloud `.htaccess`
行 187: 行 194:
 client_body_buffer_size   512k; client_body_buffer_size   512k;
 # set max upload size and increase upload timeout: # set max upload size and increase upload timeout:
-client_max_body_size      512M;+client_max_body_size      512M; 
 +client_max_body_size      2G;        # for nextcloud
 # client_body_timeout       5s; # client_body_timeout       5s;
 client_body_timeout       300s; client_body_timeout       300s;
行 262: 行 270:
 </file> </file>
  
 +
 +===== 設定チェック =====
 +
 +   # service nginx configtest
 +   または
 +   # nginx -t
serverapps/nextcloud/04.nginx_config.1691384027.txt.gz · 最終更新: 2023/08/07 04:53 by hayashi