nginx配置pathinfo
来源:互联网 发布:大数据公司如何盈利 编辑:程序博客网 时间:2024/05/16 14:43
server {
listen 8080;
server_name localhost 127.0.0.0;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root D:/test/nginx/html/paascms;
index index.php index.html;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
#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 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 D:/test/nginx/html/paascms;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
fastcgi_param PATH_INFO $1;
include fastcgi_params;
}
listen 8080;
server_name localhost 127.0.0.0;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root D:/test/nginx/html/paascms;
index index.php index.html;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
#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 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 D:/test/nginx/html/paascms;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
fastcgi_param PATH_INFO $1;
include fastcgi_params;
}
0 0
- Nginx配置pathinfo
- nginx的pathinfo配置
- nginx配置pathinfo模式
- nginx配置pathinfo
- Nginx配置支持pathinfo
- nginx 配置PATHINFO
- 配置nginx支持pathinfo模式
- 配置nginx支持pathinfo模式
- Nginx 配置 Pathinfo 【centos 6.4】
- ThinkPHP Nginx pathinfo rewrite 配置
- 配置nginx支持PATHINFO模式
- 配置Nginx支持pathinfo模式
- tp3,nginx配置支持pathinfo
- 对于框架的 pathinfo 的 nginx 配置
- 配置修改Nginx支持ThinkPHP的PATHINFO
- 简单配置nginx使之支持pathinfo
- nginx配置 thinkphp需要的pathinfo
- 简单配置nginx使之支持pathinfo
- 一些问题
- java枚举enum最简单的使用
- jquery的三种删除节点的方法
- 题目1054:字符串内排序
- Java,IO四套
- nginx配置pathinfo
- Storm 1.1.0版本单节点部署
- ajax提交数据
- 未能解决的外部符号:__security_cookie
- Android 小米手机限制系统弹出dialog
- C++ std::sort 函数的STL内部错误
- 翻译《有关编程、重构及其他的终极问题?》——23.自动获取字符串的长度
- PRML读书笔记——图模型
- Eclipse常用快捷键及其他快捷键