User Tools

Site Tools


servers:linux:nginx_php_php-fpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:nginx_php_php-fpm [2025/12/31 23:26] – Ubuntu -> oS TW Sean Rhoneservers:linux:nginx_php_php-fpm [2026/04/19 15:10] (current) Sean Rhone
Line 81: Line 81:
   * ''vhosts.d'' contains enabled websites ((this folder needs created))   * ''vhosts.d'' contains enabled websites ((this folder needs created))
  
-===== Defaults ===== +===== Folders =====
- +
-==== Folders ====+
  
 **** ****
Line 116: Line 114:
 server { server {
  
- listen '443' 'ssl' 'default_server'; + listen '443' 'ssl' 'http2' 'default_server';
- http2 'on';+
  server_name '_';  server_name '_';
  
Line 146: Line 143:
 ===== nginx ===== ===== nginx =====
  
-  sudo -e '/etc/nginx/nginx.conf' && sudo nginx -t+  sudo -e '/etc/nginx/nginx.conf'
  
 <code> <code>
-user www-data; 
-worker_processes auto; 
-worker_cpu_affinity auto; 
-pid /run/nginx.pid; 
- 
 events { events {
  multi_accept 'on';  multi_accept 'on';
Line 164: Line 156:
  
  # Logging  # Logging
 + #log_format main '$time_local - $http_host - $remote_addr - $status "$request" $body_bytes_sent - $http_referer - "$http_user_agent"';
 + #access_log '/var/log/nginx/access.log main';
 +
  access_log '/dev/null';  access_log '/dev/null';
-# access_log '/var/log/nginx/access.log'; 
  
  # Includes  # Includes
  include '/etc/nginx/conf.d/*.conf';  include '/etc/nginx/conf.d/*.conf';
- include '/etc/nginx/sites-enabled/*.conf';+ include '/etc/nginx/vhosts.d/*.conf';
  include '/etc/nginx/mime.types';  include '/etc/nginx/mime.types';
  default_type 'application/octet-stream';  default_type 'application/octet-stream';
/var/www/wiki/data/attic/servers/linux/nginx_php_php-fpm.1767241565.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki