User Tools

Site Tools


servers:windows:nginx_php_php-cgi

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:windows:nginx_php_php-cgi [2025/06/05 16:01] Sean Rhoneservers:windows:nginx_php_php-cgi [2025/06/24 15:44] (current) – nginx 1.29.0 Sean Rhone
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows;10_ltsc_server|Windows 10 (21H2)]]+  * [[windows;11_ltsc_server|Windows 11 (24H2)]]
  
 ====== Install ====== ====== Install ======
Line 14: Line 14:
  
   * https://nginx.org/en/download.html   * https://nginx.org/en/download.html
-  * Last tested: ''nginx-1.28.0.zip''+  * Last tested: ''nginx-1.29.0.zip''
  
-  * Extract to root system drive for ''C:\nginx-1.28.0\nginx.exe''+  * Extract to root system drive for ''C:\nginx-1.29.0\nginx.exe''
  
   explorer "%SystemDrive%"   explorer "%SystemDrive%"
Line 26: Line 26:
   MKDIR "%SystemDrive%\www\nginx\conf"   MKDIR "%SystemDrive%\www\nginx\conf"
  
-  COPY /Y "%SystemDrive%\nginx-1.28.0\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"+  COPY /Y "%SystemDrive%\nginx-1.29.0\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"
  
-  COPY /Y "%SystemDrive%\nginx-1.28.0\conf\mime.types" "%SystemDrive%\www\nginx\conf"+  COPY /Y "%SystemDrive%\nginx-1.29.0\conf\mime.types" "%SystemDrive%\www\nginx\conf"
  
 ==== Firewall ==== ==== Firewall ====
  
-  "netsh.exe" advfirewall firewall add rule name="nginx" dir="in" action="allow" profile="any" program="%SystemDrive%\nginx-1.28.0\nginx.exe" protocol="tcp" localport="80,443"+  "netsh.exe" advfirewall firewall add rule name="nginx" dir="in" action="allow" profile="any" program="%SystemDrive%\nginx-1.29.0\nginx.exe" protocol="tcp" localport="80,443"
  
   "netsh.exe" advfirewall firewall delete rule name="nginx"   "netsh.exe" advfirewall firewall delete rule name="nginx"
Line 43: Line 43:
   * https://windows.php.net/qa/   * https://windows.php.net/qa/
   * x64 Non Thread Safe   * x64 Non Thread Safe
-  * Last tested: ''php-8.4.8-nts-Win32-vs17-x64.zip''+  * Last tested: ''php-8.4.9RC1-nts-Win32-vs17-x64.zip''
  
-  * Extract to root system drive for ''C:\php-8.4.8-nts-Win32-vs17-x64\php-cgi.exe''+  * Extract to root system drive for ''C:\php-8.4.9RC1-nts-Win32-vs17-x64\php-cgi.exe''
   * Add to user ''Path''   * Add to user ''Path''
  
Line 54: Line 54:
   "SystemPropertiesAdvanced.exe"   "SystemPropertiesAdvanced.exe"
  
-  C:\php-8.4.8-nts-Win32-vs17-x64+  C:\php-8.4.9RC1-nts-Win32-vs17-x64
  
 ====== nginx Settings ====== ====== nginx Settings ======
Line 163: Line 163:
     gzip_comp_level 9;     gzip_comp_level 9;
     gzip_types *;     gzip_types *;
-}</code>+    gzip_static always; 
 +    gunzip on; 
 +} 
 + 
 +# End</code>
  
 ==== CSP Headers ==== ==== CSP Headers ====
Line 275: Line 279:
   * https://community.letsencrypt.org/t/using-certbot-in-windows-the-pragmatic-way/173929   * https://community.letsencrypt.org/t/using-certbot-in-windows-the-pragmatic-way/173929
   * https://www.php.net/manual/en/image.installation.php   * https://www.php.net/manual/en/image.installation.php
 +  * [[https://www.ssllabs.com/ssltest/analyze.html?d=wiki.realmofespionage.xyz|Qualys SSL Test]]
  
/srv/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1749153670.txt.gz · Last modified: by Sean Rhone