server {
listen 80;
server_name 域名; #charset koi8-r;
#access_log /var/log/nginx/host.access.log main; location / {
# root /usr/share/nginx/html;
root /var/wwwroot/bank;
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
}
autoindex on;
} #error_page 404 /404.html; # redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
} # proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#} #pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root /var/wwwroot/bank;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
# } location ~ \.php$ {
root /var/wwwroot/bank;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/wwwroot/bank/$fastcgi_script_name;
include fastcgi_params;
} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

  

最新文章

  1. [计算机网络]简易http server程序
  2. 新浪微博客户端(47)-在TextView中插入表情
  3. js处理iframe中子页面与父页面里面对象的取得的解决方案
  4. docker部署tomcat
  5. linux虚拟机安装
  6. 创建ROS功能包(四)
  7. C#学习笔记2:Iframe框架、MD5加密
  8. SSH无密码登陆问题解决
  9. 读懂IL代码(三)
  10. IOS ARC和非ARC文件混用
  11. 任何一款IDE的设计思路
  12. Socket编程实践(4) --多进程并发server
  13. Python杂记
  14. Dynamics 365 解决方案导出报错
  15. cocos2dx解决中文乱码方法
  16. day05 判断敏感字符
  17. Atitit php vs node.js attilax总结
  18. GSON使用之对特殊字符的转换的处理
  19. 【转】classpath和环境变量设置
  20. 通过.json()将服务器返回的字符串转换成字典

热门文章

  1. powerDigner使用
  2. 全新开始fighting
  3. Spring基于注解的配置概述
  4. 使用Spring定时任务并且通过AOP监控任务执行情况
  5. 【转】nginx 和 php-fpm 通信使用unix socket还是TCP,及其配置
  6. html 元素定位position-relative, absolute, fixed, static
  7. 异或巧用:Single Number
  8. 使用vscode 编译 sass
  9. ASP.NET MVC 学习笔记-7.自定义配置信息 ASP.NET MVC 学习笔记-6.异步控制器 ASP.NET MVC 学习笔记-5.Controller与View的数据传递 ASP.NET MVC 学习笔记-4.ASP.NET MVC中Ajax的应用 ASP.NET MVC 学习笔记-3.面向对象设计原则
  10. linux kernel编译配置相关