nginx 配置tp3.2
2024-08-27 08:46:52
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;
#}
}
最新文章
- [计算机网络]简易http server程序
- 新浪微博客户端(47)-在TextView中插入表情
- js处理iframe中子页面与父页面里面对象的取得的解决方案
- docker部署tomcat
- linux虚拟机安装
- 创建ROS功能包(四)
- C#学习笔记2:Iframe框架、MD5加密
- SSH无密码登陆问题解决
- 读懂IL代码(三)
- IOS ARC和非ARC文件混用
- 任何一款IDE的设计思路
- Socket编程实践(4) --多进程并发server
- Python杂记
- Dynamics 365 解决方案导出报错
- cocos2dx解决中文乱码方法
- day05 判断敏感字符
- Atitit php vs node.js attilax总结
- GSON使用之对特殊字符的转换的处理
- 【转】classpath和环境变量设置
- 通过.json()将服务器返回的字符串转换成字典
热门文章
- powerDigner使用
- 全新开始fighting
- Spring基于注解的配置概述
- 使用Spring定时任务并且通过AOP监控任务执行情况
- 【转】nginx 和 php-fpm 通信使用unix socket还是TCP,及其配置
- html 元素定位position-relative, absolute, fixed, static
- 异或巧用:Single Number
- 使用vscode 编译 sass
- 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.面向对象设计原则
- linux kernel编译配置相关