スポンサーサイト
2023.04.20 Thursday
一定期間更新がないため広告を表示しています
category:- | by:スポンサードリンク | - | - | -
# more /etc/nginx/conf.d/xxxxx.conf server { listen 80; server_name xxxxx.com; access_log /var/log/nginx/xxxxx.access.log main; location / { root /var/www/html/yyyyy/zzzzz; index index.php index.html index.htm ; } location ~ ¥.php$ { root /var/www/html/yyyyy/zzzzz; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } }
server { listen 80; server_name xxxxx.com; access_log /var/log/nginx/xxxxx.access.log main; rewrite /(.*).html /index.php?para=$1 permanent; location / { root /var/www/html/xxxxx; index index.html index.htm index.php; } location ~ ¥.php$ { root /var/www/html/xxxxx; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } }
rewrite /area/あいうえお.html /area.php?areacd=Z001 permanent; rewrite /list/areacd/(.*)/special/(.*)/(.*).html /list.php?areacd=$1&specialcd=$2 permanent;
# cat nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
cd /etc/yum.repos.d ls -ltr vi nginx.repo sudo yum -y --enablerepo=nginx install nginx
server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; index index.html index.htm index.php; } location ~ ¥.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; }
2018/09/22 00:28:31 [notice] 34123#34123: signal process started 2018/09/22 00:30:11 [error] 34233#34233: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: server: localhost, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: