标签:document location apache access server ram param 进程 name
Nginx 支持 PHP
server { server_name www.www1.com www1.com; location / { index index.php index.html; root /web/www/www1.com } location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; // fastcgi_param 放置PHP动态程序的主目录,也是scripts$fastcgi_script_name 前面指定的目录; include fastcgi_params; // fastcgi 进程的参数配置文件; }
# deny access to .htaccess files, if Apache‘s document root # concurs with nginx‘s one # #location ~ /\.ht { # deny all; #} }
标签:document location apache access server ram param 进程 name
原文地址:http://www.cnblogs.com/sharesdk/p/7851707.html