AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 有没有在AMH4.2环境里架设esotalk的?求个规则 |
|
---|---|
fingon |
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; } }
点赞,加油! (0分)
2014-12-07 04:50:56 1
|
amysql |
应该是匹配到jpg的location去了。
改下location 的匹配。 或放规则到外面去。
回复
2014-12-08 15:36:09 2
AMH面板 - 好用高效低占用、安全可靠极稳定 |
fingon |
支持搞不懂,能否帮忙写个规则
回复
2014-12-11 03:23:47 3
|