検索条件
お知らせ
現在サイトのリニューアル作業中のため、全体的にページの表示が乱れています。
Proxy headerを設定しないとiOS Safari環境で上手くアクセスできないケースがあるのでやる設定
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
location @prox {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://example.com;
}
Env |
Ver |
Windows |
10 pro |
PHP |
8.0.2 NTS Visual C++ 2019 x64 |
nginx |
1.19.8 |
nginx.conf
を開き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 C:/nginx/html/$fastcgi_script_name;
include fastcgi_params;
}
- 設定したフォルダに
.php
ファイルを配置
nginx
を起動
php-cgi.exe -b 127.0.0.1:9000
.php
ファイルにアクセス