nginx 之cgi fastcgi.conf和fastcgi_params的区别
来源:互联网 发布:网络电视在线直播观看 编辑:程序博客网 时间:2024/05/29 11:54
nginx 之cgi
fastcgi.conf和fastcgi_params的区别:
只有一行的差别
$: diff fastcgi_params fastcgi.conf
2d1
< fastcgi_param SCRIPT_FILENAME fastcgi_script_name;
不再建议大家使用以下方式(搜了一下,网上大量的文章,并且nginx.conf的默认配置也是使用这种方式):
location ~ \.php$ { root /var/www/wordpress; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #include fastcgi_params; include fastcgi.conf;#只用包含fastcgi.conf就行了,上面就可以省去了 }
server { listen 80; server_name localhost; location / { root /var/www/html; index index.html index.htm index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } location ~ \.cgi$ { fastcgi_pass 127.0.0.1:8080; fastcgi_index index.cgi; fastcgi_param SCRIPT_FILENAME fcgi$fastcgi_script_name; include fastcgi_params; }}
0 0
- nginx 之cgi fastcgi.conf和fastcgi_params的区别
- nginx fastcgi_params与fastcgi.conf
- CGI和FastCGI的区别
- CGI和FastCGI的区别
- FastCGI和CGI的区别
- cgi和fastcgi的区别
- CGI,FastCGI的区别
- CGI、FastCGI和php-fpm的区别
- centos+nginx+php-fpm+php include fastcgi_params php页面能访问但空白,被fastcgi_params与fastcgi.conf害惨了
- fastcgi与cgi的区别
- fastcgi与cgi的区别
- fastcgi与cgi的区别
- fastcgi与cgi的区别
- fastcgi与cgi的区别
- cgi与fastcgi的区别
- CGI与fastCGI的区别
- CGI、FastCGI和php-fpm的概念和区别
- CGI,FastCGI和PHP-FPM之间的关系和区别。
- Android错误——The connection to adb is down, and a severe error has occured 解决方案
- 错误 3027: 没有为以下 EntitySet/AssociationSet 指定映射
- Volley缓存策略
- qt.conf和qtconfig配置Qt运行设定
- 系统流量变化的原因与微型气泵的关系
- nginx 之cgi fastcgi.conf和fastcgi_params的区别
- UIViewContentMode各类型效果
- session.createQuery()与createSQLQuery()区别
- 关于Android应用开发的一些安全注意事项
- android开发游记:scrollview上下弹动效果和viewpager左右弹动效果
- Spring MVC: org.springframework.web.multipart.MultipartException: Could not parse multipart servlet
- 关于AFNetworking的使用
- iOS Objective-C之KVC、KVO
- 11.23