php
php for windows
config
location / {
root html;
index index.html index.htm index.php;
}
- Uncomment and change to nginx home path
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME D:/dev/nginx-1.13.4/html$fastcgi_script_name;
include fastcgi_params;
}
start
start nginx
php-cgi.exe -b 127.0.0.1:9000
check process
tasklist /fi "imagename eq nginx.exe"
nginx -s stop
Reserved Keywords
- Read Environment Variables
$_ENV["USER"]
$_SERVER['DOCUMENT_ROOT']
function
ref
- nginx-php
- ์๋์ฐ(Windows) nginx์ php ์ฐ๋ํ๊ธฐ
- nginx for Windows