首页   注册   登录
 dapengzhao 最近的时间轴更新

dapengzhao

V2EX 第 294465 号会员,加入于 2018-02-26 16:39:18 +08:00
今日活跃度排名 10378
dapengzhao 最近回复了
@rockyou12 如果要添加新的功能,再定制是不是不方便
@rockyou12 数字指标主要是 ip 端口 流量
@ddsfeng 大哥🙏,能不能说下改了啥地方
@liwl
server {
listen 8080;
server_name 114.116.109.253;
root /usr/local/nginx/html;

location ~ .*\.php(\/.*)*$
{
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params.conf;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
}

还是不行,直接下载了
@sheeta 还是在下载 index.php
@ochatokori mime type 是跟 css 静态文件一类的资源有关系吧
@liangzi
root 18157 1 0 15:24 ? 00:00:00 php-fpm: master process (/usr/local/php7/etc/php-fpm.conf)
www-data 18158 18157 0 15:24 ? 00:00:00 php-fpm: pool www
www-data 18159 18157 0 15:24 ? 00:00:00 php-fpm: pool www
www-data 18160 18157 0 15:24 ? 00:00:00 php-fpm: pool www
www-data 18161 18157 0 15:24 ? 00:00:00 php-fpm: pool www
www-data 18162 18157 0 15:24 ? 00:00:00 php-fpm: pool www
root 18259 17754 0 16:06 pts/0 00:00:00 grep php
@LittleLease 有,现在问题是 nginx 解析完第一个 location 之后,不匹配下面的 location 了
@keepeye
worker_processes 1;
events {
worker_connections 1024;
}

http {
include mime.types;
sendfile on;
keepalive_timeout 65;

server {
listen 8080;
server_name 114.116.109.253;
root /usr/local/nginx/html;

#location ~ \.php$ {
#try_files $uri =404;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
#}
location ~ \.php$ {
return 403;
}

location / {
root /usr/local/nginx/html
index index.php
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2220 人在线   最高记录 5043   ·  
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.3 · 19ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
♥ Do have faith in what you're doing.
沪ICP备16043287号-1