- nginx解析php
server { php
listen 80; html
server_name localhost; nginx
index index.html index.htm index.php; unix
root /opt/nginx/html;server
location /{ htm
root /opt/nginx/html; ip
}io
location ~ .*\.(php|php5)?$ { ast
include fastcgi.conf; class
#fastcgi.conf 有一行fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_pass unix:/tmp/www.sock;
fastcgi_pass 127.0.0.1:12091;
fastcgi_index index.php;
}
}