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/01/07 05:04] – Sean Rhone | servers:windows:nginx_php_php-cgi [2025/04/18 11:29] (current) – [nginx] Sean Rhone | ||
---|---|---|---|
Line 2: | Line 2: | ||
* nginx ((https:// | * nginx ((https:// | ||
- | * PHP + PHP-CGI((https:// | + | * PHP + PHP-CGI ((https:// |
* [[Information: | * [[Information: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[windows:10|Windows | + | * [[windows;11_ltsc|Windows |
====== 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 28: | Line 42: | ||
* 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 '' | ||
explorer " | explorer " | ||
Line 36: | Line 51: | ||
CD " | CD " | ||
- | === Path === | + | " |
- | < | + | C:\php-8.4.6-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 63: | Line 67: | ||
MKDIR " | MKDIR " | ||
- | explorer " | + | explorer " |
===== HTTPS Redirect ===== | ===== HTTPS Redirect ===== | ||
Line 77: | Line 81: | ||
return 301 https:// | return 301 https:// | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
===== Non-existent 404 ===== | ===== Non-existent 404 ===== | ||
Line 92: | Line 98: | ||
return " | return " | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
===== Headers ===== | ===== Headers ===== | ||
Line 108: | Line 116: | ||
add_header Referrer-Policy " | add_header Referrer-Policy " | ||
add_header Expect-CT " | add_header Expect-CT " | ||
- | add_header Permissions-Policy " | + | add_header Permissions-Policy " |
- | ===== nginx ===== | + | # End</ |
- | * :!: '' | + | ===== nginx ===== |
notepad " | notepad " | ||
Line 139: | Line 147: | ||
include C:/ | include C:/ | ||
include C:/ | include C:/ | ||
- | include C:/nginx-1.27.3/ | + | include C:/www/ |
default_type application/ | default_type application/ | ||
Line 198: | Line 206: | ||
# End</ | # End</ | ||
- | ====== | + | ====== |
- | MKDIR " | + | MKDIR " |
- | explorer " | + | explorer " |
===== Start ===== | ===== Start ===== | ||
- | notepad " | + | notepad " |
< | < | ||
CD " | CD " | ||
- | " | + | " |
- | " | + | :: End</ |
==== Autostart ==== | ==== Autostart ==== | ||
- | explorer "%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp" | + | explorer "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" |
- | " | + | " |
nginx | nginx | ||
Line 224: | Line 232: | ||
===== Stop ===== | ===== Stop ===== | ||
- | notepad " | + | notepad " |
< | < | ||
CD " | CD " | ||
- | " | + | " |
- | " | + | :: End</ |
===== Reload ===== | ===== Reload ===== | ||
- | notepad " | + | notepad " |
< | < | ||
CD " | CD " | ||
" | " | ||
- | " | + | " |
- | " | + | :: End</ |
====== TODOs ====== | ====== TODOs ====== |
/srv/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1736244284.txt.gz · Last modified: by Sean Rhone