产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 有没有在AMH4.2环境里架设esotalk的?求个规则

fingon
铝牌会员
215.00 价值分

fingon 发表于 2014-12-07 04:50:56
附件插件在apache下好好的,在nginx里老出错

http://wararrow.com/attachment/548020c7024ad_image.jpg 打不开
http://wararrow.com/attachment/548048b8b7684_ 能打开

Rewrite是
location / {
try_files $uri $uri/ @esotalk;
}
location @esotalk {
rewrite ^/(.*)$ /index.php?p=$1;
}


别人给了个据说可以用的,但是拿过来写上网站就成404了
location / {


fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_split_path_info ^()(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO /index.php$fastcgi_path_info;

#This is for attachement plugin, since it produces filenames which are not real
location ~ ^/attachment/.* {

fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_split_path_info ^()(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO /index.php$fastcgi_path_info;
}

#Only allowed types can be dowloaded, all other requests will be proxied to esoTalk
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt|otf|eot|svg|ttf|woff)$ {
access_log off;
}


}



2014-12-07 04:50:56 1

amysql
创始人
99530.81 价值分

应该是匹配到jpg的location去了。
改下location 的匹配。
或放规则到外面去。
  支持 (0分)  反对 (0分)
回复  2014-12-08 15:36:09 2

AMH面板 - 好用高效低占用、安全可靠极稳定

fingon
铝牌会员
215.00 价值分

支持搞不懂,能否帮忙写个规则
  支持 (0分)  反对 (0分)
回复  2014-12-11 03:23:47 3
 1  (总1页)
AMH社区列表
用户服务中心