servers:windows:nginx_php_php-cgi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:windows:nginx_php_php-cgi [2025/03/14 19:48] – PHP 8.4.5 Sean Rhone | servers:windows:nginx_php_php-cgi [2025/06/24 15:44] (current) – nginx 1.29.0 Sean Rhone | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[windows;11_ltsc|Windows 11 (24H2)]] | + | * [[windows;11_ltsc_server|Windows 11 (24H2)]] |
====== Install ====== | ====== Install ====== | ||
Line 14: | Line 14: | ||
* https:// | * https:// | ||
- | * Last tested: '' | + | * Last tested: '' |
- | * Extract to root system drive for '' | + | * Extract to root system drive for '' |
explorer " | explorer " | ||
CD " | CD " | ||
+ | |||
+ | ==== confs ==== | ||
+ | |||
+ | MKDIR " | ||
+ | |||
+ | COPY /Y " | ||
+ | |||
+ | COPY /Y " | ||
+ | |||
+ | ==== Firewall ==== | ||
+ | |||
+ | " | ||
+ | |||
+ | " | ||
===== PHP-CGI ===== | ===== PHP-CGI ===== | ||
Line 27: | Line 41: | ||
* https:// | * https:// | ||
+ | * https:// | ||
* x64 Non Thread Safe | * x64 Non Thread Safe | ||
- | * Last tested: '' | + | * Last tested: '' |
- | * Extract to root system drive for '' | + | * Extract to root system drive for '' |
* Add to user '' | * Add to user '' | ||
Line 39: | Line 54: | ||
" | " | ||
- | C:\php-8.4.5-nts-Win32-vs17-x64 | + | C:\php-8.4.9RC1-nts-Win32-vs17-x64 |
- | + | ||
- | ====== Firewall ====== | + | |
- | + | ||
- | * 80/tcp is HTTP | + | |
- | * 443/tcp is HTTPS | + | |
- | + | ||
- | netsh advfirewall firewall add rule name=" | + | |
- | + | ||
- | netsh advfirewall firewall add rule name=" | + | |
====== nginx Settings ====== | ====== nginx Settings ====== | ||
Line 61: | Line 67: | ||
MKDIR " | MKDIR " | ||
- | |||
- | explorer " | ||
===== HTTPS Redirect ===== | ===== HTTPS Redirect ===== | ||
Line 116: | Line 120: | ||
===== nginx ===== | ===== nginx ===== | ||
- | |||
- | * :!: '' | ||
- | * TODO: Copy all hard-coded files to '' | ||
notepad " | notepad " | ||
Line 145: | Line 146: | ||
include C:/ | include C:/ | ||
include C:/ | include C:/ | ||
- | include C:/nginx-1.27.4/ | + | include C:/www/ |
default_type application/ | default_type application/ | ||
Line 162: | Line 163: | ||
gzip_comp_level 9; | gzip_comp_level 9; | ||
gzip_types *; | gzip_types *; | ||
- | }</ | + | gzip_static always; |
+ | gunzip on; | ||
+ | } | ||
+ | |||
+ | # End</ | ||
==== CSP Headers ==== | ==== CSP Headers ==== | ||
Line 180: | Line 185: | ||
==== Settings ==== | ==== Settings ==== | ||
- | notepad " | + | |
< | < | ||
- | ssl_certificate "C:/Certbot/live/realmofespionage.xyz/fullchain.pem"; | + | ssl_certificate "C:/www/certbot/certs/fullchain1.pem"; |
- | ssl_trusted_certificate "C:/Certbot/live/realmofespionage.xyz/fullchain.pem"; | + | ssl_trusted_certificate "C:/www/certbot/certs/fullchain1.pem"; |
- | ssl_certificate_key "C:/Certbot/live/realmofespionage.xyz/privkey.pem"; | + | ssl_certificate_key "C:/www/certbot/certs/privkey1.pem"; |
ssl_session_timeout " | ssl_session_timeout " | ||
Line 196: | Line 201: | ||
ssl_prefer_server_ciphers " | ssl_prefer_server_ciphers " | ||
ssl_ecdh_curve " | ssl_ecdh_curve " | ||
- | |||
- | ssl_stapling " | ||
- | ssl_stapling_verify " | ||
- | resolver " | ||
- | resolver_timeout " | ||
# End</ | # End</ | ||
====== Scripts ====== | ====== Scripts ====== | ||
+ | |||
+ | **** | ||
MKDIR " | MKDIR " | ||
- | |||
- | explorer " | ||
===== Start ===== | ===== Start ===== | ||
- | notepad " | + | |
< | < | ||
Line 219: | Line 219: | ||
:: End</ | :: End</ | ||
- | |||
- | ==== Autostart ==== | ||
- | |||
- | explorer " | ||
- | |||
- | " | ||
- | |||
- | nginx | ||
===== Stop ===== | ===== Stop ===== | ||
- | notepad " | + | |
< | < | ||
Line 237: | Line 229: | ||
:: End</ | :: End</ | ||
+ | |||
+ | " | ||
===== Reload ===== | ===== Reload ===== | ||
- | notepad " | + | |
< | < | ||
Line 248: | Line 242: | ||
:: End</ | :: End</ | ||
+ | |||
+ | " | ||
+ | |||
+ | ====== Shortcuts ====== | ||
+ | |||
+ | ===== Desktop ===== | ||
+ | |||
+ | ==== Start ==== | ||
+ | |||
+ | " | ||
+ | |||
+ | nginx Start | ||
+ | |||
+ | ==== Stop ==== | ||
+ | |||
+ | " | ||
+ | |||
+ | nginx Stop | ||
+ | |||
+ | ==== Autostart ==== | ||
+ | |||
+ | " | ||
+ | |||
+ | " | ||
+ | |||
+ | nginx | ||
+ | |||
====== TODOs ====== | ====== TODOs ====== | ||
Line 258: | Line 279: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * [[https:// | ||
C:/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1741996124.txt.gz · Last modified: by Sean Rhone