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 [2026/11/14 10:22] – Sean Rhoneservers:linux:nginx_php_php-fpm [2026/11/18 14:10] (current) – Sean Rhone
Line 42: Line 42:
  
   sudo mv -fv '/etc/php8/fpm/php-fpm.d/www.conf' '/etc/php8/fpm/php-fpm.d/www.conf~'   sudo mv -fv '/etc/php8/fpm/php-fpm.d/www.conf' '/etc/php8/fpm/php-fpm.d/www.conf~'
 +
 +  sudo ln -s -f '/dev/null' '/etc/php8/fpm/php-fpm.d/www.conf'
  
 ===== Check Defaults ===== ===== Check Defaults =====
Line 74: Line 76:
  
   * This automatically redirects non-HTTPS site links to HTTPS   * This automatically redirects non-HTTPS site links to HTTPS
 +  * ''[::]:80'' prevents nginx start with ''ipv6.disable=1''
  
   sudo -e '/etc/nginx/conf.d/http-redirect.conf'   sudo -e '/etc/nginx/conf.d/http-redirect.conf'
Line 80: Line 83:
 server { server {
  listen '80' 'default_server';  listen '80' 'default_server';
- listen '[::]:80' 'default_server';+# listen '[::]:80' 'default_server';
  
  return '301' 'https://$host$request_uri';  return '301' 'https://$host$request_uri';
Line 90: Line 93:
  
   * This prevents unconfigured subdomains from loading assets from other sites ((if a site/URL doesn't exist, it'll 404))   * This prevents unconfigured subdomains from loading assets from other sites ((if a site/URL doesn't exist, it'll 404))
 +  * :?: 2026/11/18: [[https://xint.io/blog/nginx2root-remote-code-execution|nginx2root]] (''http2'')
  
   sudo -e '/etc/nginx/conf.d/non-existent.conf'   sudo -e '/etc/nginx/conf.d/non-existent.conf'
Line 96: Line 100:
 server { server {
  listen '443' 'ssl' 'default_server';  listen '443' 'ssl' 'default_server';
- http2 'on';+ http2 'off';
  server_name '_';  server_name '_';
  
Line 198: Line 202:
  
   echo "export USE_ZEND_ALLOC='0'" | sudo tee '/etc/profile.d/php-tweaks.sh' > '/dev/null'   echo "export USE_ZEND_ALLOC='0'" | sudo tee '/etc/profile.d/php-tweaks.sh' > '/dev/null'
- 
-====== LAN HOSTS ====== 
- 
-  sudo -e '/etc/hosts' 
- 
-<code> 
-# RoE (LAN) 
- 
-192.168.1.152 realmofespionage.xyz 
-192.168.1.152 wiki.realmofespionage.xyz 
-192.168.1.152 media.realmofespionage.xyz 
-192.168.1.152 blog.realmofespionage.xyz 
-192.168.1.152 social.realmofespionage.xyz 
-192.168.1.152 forums.realmofespionage.xyz 
-192.168.1.152 status.realmofespionage.xyz 
-192.168.1.152 files.realmofespionage.xyz 
-192.168.1.152 test.realmofespionage.xyz 
-192.168.1.152 chat.realmofespionage.xyz 
- 
-# End</code> 
  
 ====== TODOs ====== ====== TODOs ======
/srv/www/wiki/data/attic/servers/linux/nginx_php_php-fpm.1794669765.txt.gz · Last modified: by Sean Rhone