Mac 配置支持Thinkphp虚拟机
来源:互联网 发布:开网店学什么设计软件 编辑:程序博客网 时间:2024/06/07 23:57
Mac 配置支持Thinkphp虚拟机
网上的TP nginx配置没找到一个合适的,所以只好自己写, 就当是学习nginx了.
- 完美支持4种url模式
- 静态文件404不跑fastcgi浪费资源
- 没有多于的IO浪费
server { listen 80; server_name thinkphp.lo; root /var/www; index index.html index.htm index.php; error_page 404 /404.html; location = /404.html { return 404 'Sorry, File not Found!'; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; # windows用户替换这个目录 } location / { try_files $uri @rewrite; } location @rewrite { set $static 0; if ($uri ~ \.(css|js|jpg|jpeg|png|gif|ico|woff|eot|svg|css\.map|min\.map)$) { set $static 1; } if ($static = 0) { rewrite ^/(.*)$ /index.php?s=/$1; } } location ~ /Uploads/.*\.php$ { deny all; } location ~ \.php/ { if ($request_uri ~ ^(.+\.php)(/.+?)($|\?)) { } fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_param SCRIPT_NAME $1; fastcgi_param PATH_INFO $2; fastcgi_param SCRIPT_FILENAME $document_root$1; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; }}
阅读全文
0 0
- Mac 配置支持Thinkphp虚拟机
- 配置Nginx支持ThinkPHP
- mac xampp 虚拟机配置
- 配置修改Nginx支持ThinkPHP的PATHINFO
- 让nginx完美支持Thinkphp的配置
- 关于nginx支持thinkphp框架的配置
- Nginx配置thinkPHP 支持phpinfo和rewrite
- LNMP 配置NGINX 支持THINKPHP PATHINFO模式
- 配置nginx使之支持thinkphp
- Nginx 下配置支持thinkphp 伪静态
- mac下配置xampp+thinkphp解决方案
- mac 环境下虚拟机配置
- thinkphp mac
- 配置CentOS虚拟机支持1440x900分辨率
- 配置虚拟机支持USB设备的热插拔
- mac下配置ubuntu虚拟机和jenkins
- MAC下VMware Fusion虚拟机配置网卡
- Mac虚拟机安装XCode 配置opencv
- 理解RESTful架构
- 【PDF下载】大数据峰会之地产大数据趋势与应用实践
- Android Studio Multiple dex android/support/v4 处理
- retrofit2.adapter.rxjava.HttpException: HTTP 500 Internal Server Error
- java多线程
- Mac 配置支持Thinkphp虚拟机
- 简述动量Momentum梯度下降
- 斐波那契第k项
- .net下的RabbitMQ和MSMQ消息队列
- 远程仓库版本回退
- SQL日常学习
- zookeeper 大量连接断开重连原因排查
- SVN报错1——Could not create the view: org.tigris.subversion.subclipse.ui.repository.RepositoriesView
- 模拟多socket客户端连接server进行代码压力测试