Thinkphp 伪静态Nginx配置方式
来源:互联网 发布:淘宝直播货源 编辑:程序博客网 时间:2024/05/16 01:49
server {
listen 80;
server_name promotion.admin.xxxx.cn;
location /
{
root /www/os_promotion; index index.html index.htm index.php;
include /www/os_promotion/.htaccess;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html
{
root html;
}
location ~ \.php$
{
root /www/os_promotion;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#支持 THINKPHP URL_MODEL 1 #######
#fastcgi_param SCRIPT_FILENAME /www/os_promotion/scripts$fastcgi_script_name;
include fastcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.?\.php)(/.)$")
{
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
#支持 THINKPHP URL_MODEL 1 #######
}
}
listen 80;
server_name promotion.admin.xxxx.cn;
location /
{
root /www/os_promotion; index index.html index.htm index.php;
include /www/os_promotion/.htaccess;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html
{
root html;
}
location ~ \.php$
{
root /www/os_promotion;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#支持 THINKPHP URL_MODEL 1 #######
#fastcgi_param SCRIPT_FILENAME /www/os_promotion/scripts$fastcgi_script_name;
include fastcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.?\.php)(/.)$")
{
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
#支持 THINKPHP URL_MODEL 1 #######
}
}
0 0
- Thinkphp 伪静态Nginx配置方式
- Nginx 下配置支持thinkphp 伪静态
- nginx配置location对thinkphp伪静态影响
- nginx 配置伪静态
- Nginx伪静态配置
- nginx下实现thinkphp伪静态
- nginx伪静态配置实例
- thinkPHP在apache和IIS,nginx下的伪静态配置
- thinkphp配置nginx伪静态并解决PATHINFO问题和fix_pathinfo漏洞
- liunx 下thinkphp伪静态配置 rewrite
- Nginx安装配置及伪静态配置
- nginx下ThinkPHP的url重写实现伪静态url
- 在Nginx中配置伪静态
- PHP nginx 去掉伪静态的配置
- ThinkPHP3.2.3+Nginx的伪静态配置
- CodeIgniter3.0+Nginx的伪静态配置
- nginx下wordpress路径、伪静态配置
- nginx配置防盗链及伪静态
- 解决android2.3版本下设置控件透明度的问题
- SAX解析
- 用力过猛 Unsupported major.minor version 52.0
- 函数的参数传递
- 在Ubuntu系统上安装minidwep-gtk软件
- Thinkphp 伪静态Nginx配置方式
- apache是容器么,作用是什么? .
- iOS-Core-Animation-Advanced-Techniques(六)
- VC系统热键
- apache2部署django的错误
- memset,memcpy,strcpy的使用与区别
- ASP 表单
- mysql面试题
- iOS-Core-Animation-Advanced-Techniques(七)