nginx.conf文件配置后访问边下载 以及yaf框架使用中NGINX.conf文件配置
訪問變下載 缺這些
location ~ \.php$ {
? ? ? ? ? ? fastcgi_pass ? 127.0.0.1:9000;
? ? ? ? ? ? fastcgi_index ?index.php;
? ? ? ? ? ? fastcgi_param ?SCRIPT_FILENAME $document_root$fastcgi_script_name;
? ? ? ? ? ? include ? ? ? ?fastcgi_params;
? ? ? ? }
?
?
yaf框架缺這些
server {
? ? ? ? listen 81;
? ? ? ? server_name localhost;
? ? ? ? index index.php;
? ? ? ? root /opt/www/highApi;
? ? ? ? if (!-e $request_filename) {
? ? ? ? ? ? rewrite ^/(.*) /index.php/$1 last;
? ? ? ? }
? ? ? ? location ~ \.php$ {
? ? ? ? ? ? fastcgi_pass ? 127.0.0.1:9000;
? ? ? ? ? ? fastcgi_index ?index.php;
? ? ? ? ? ? fastcgi_param ?SCRIPT_FILENAME $document_root$fastcgi_script_name;
? ? ? ? ? ? include ? ? ? ?fastcgi_params;
? ? ? ? }
? ? }
?
總結(jié)
以上是生活随笔為你收集整理的nginx.conf文件配置后访问边下载 以及yaf框架使用中NGINX.conf文件配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一致性 Hash 算法学习(分布式或均衡
- 下一篇: nginx 启动问题:nginx (pi