Symfony2的Nginx配置
来源:互联网 发布:sql删除前10条记录 编辑:程序博客网 时间:2024/05/24 03:34
经验证可用的Nginx.conf配置:
server { server_name 192.168.1.3;# root /usr/share/nginx/html; root ~/sym2/test/web; location / { try_files $uri /app.php$is_args$args; } # Forward PHP request to FastCGI, using PHP-fpm location ~ ^/(app_dev|config)\.php(/|$) { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; } # return 404 for all other php files not matching the front controller # this prevents access to other php files you don't want to be accessible. location ~ \.php$ { return 404; } }
阅读全文
0 0
- Symfony2的Nginx配置
- Symfony2 Nginx php-fpm 配置
- Symfony2 配置实用 redisBundle
- Symfony2
- Symfony2
- 关于Symfony2+nginx搭建过程总结
- Symfony2 中event的使用
- 在phpstorm中配置symfony2项目
- Nginx的基本配置
- Nginx的安装配置
- 我的nginx配置
- NGINX的REWRITE配置
- nginx的环境参数配置
- Nginx的常用配置
- nginx+php的配置
- nginx+php的配置
- nginx+php的配置
- Nginx的location配置
- Spring基于注解的方式配置bean的实例
- java 保留两位小数
- python实现机械分词(2)-逆向最大匹配算法
- Oracle求某一列最大值
- MxCAD5.2 2017.7.10软件更新
- Symfony2的Nginx配置
- 写页面中需要知道的一些兼容方法
- HDU 1232 畅通工程(并查集Disjoint Set 经典)
- Couldn't save uncommitted changes / unable to auto-detect email address错误
- 基于ReentrantLock发生死锁的解决方案
- 利用Arcgis Engine 二次开发的使用和总结
- LintCode 删除数字+贪心
- Python Web开发Django框架学习(十三)连接MySQL数据库
- Myisam和innodb的区别