Nginx运行php的配置
来源:互联网 发布:钣金外壳 软件 编辑:程序博客网 时间:2024/05/20 04:15
server {
listen 8001;
server_name localhost;
set $root_path /Users/pasenger/Code/github/php/phalcon/tutorial/public;
root $root_path;
#access_log /var/log/nginx/$host-access.log; error_log /var/log/nginx/$host-error.log error;
index index.php;
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
location ~ \.php {
# try_files $uri =404;
fastcgi_index /index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root $root_path;
}
location ~ /\.ht {
deny all;
}
}
0 0
- Nginx运行php的配置
- 如何配置nginx同时运行不同版本的php-fpm
- nginx+php的配置
- nginx+php的配置
- nginx+php的配置
- nginx+php的配置
- Nginx+php的配置
- nginx+php的配置
- nginx+php的配置
- nginx+php的配置
- nginx + php 的配置
- nginx+php的配置
- PHP+Nginx的配置
- 配置Linux+Nginx+PHP+MySQL运行环境
- php运行环境安装与配置nginx
- Nginx运行Laravel的配置
- Nginx运行Lumen的配置
- 分享:PHP+FastCGI+Nginx配置PHP运行环境
- Iframe 自适应高度应用
- CocoaPods进阶:本地包管理
- Java学习笔记:Arrays
- Unity中使用UGUI与ScrollView的练习
- Speech Memorization
- Nginx运行php的配置
- HDOJ-1024 Max Sum Plus Plus (最大M子段和问题)
- 【leetcode】Remove Linked List Elements
- 【Quartz】Quartz存储与持久化-基于quartz.properties的配置
- Android中基于HTTP的通信技术(4)使用HttpClient进行Post方式通信
- Android 深入ViewPager补间动画,实现类京东商城首页广告Banner切换效果
- Spark:Transformation和Action
- js 百度地图标记定位(一)
- UVA11174 J.Stand in a Line (计数+逆元)