<div dir="ltr">Hello,<span name="Edho Arief" class="" style="font-size:14px">Edho Arief</span><span style="font-size:14px;white-space:nowrap"> </span><div>sorry, just be not careful to understand.<div>It's ok now, thank again.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-20 13:55 GMT+08:00 Edho Arief <span dir="ltr"><<a href="mailto:me@myconan.net" target="_blank">me@myconan.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Mon, Jun 20, 2016, at 14:54, 二戒 wrote:<br>
> sorry. I have found my forum can't show attachment now.<br>
><br>
> blow is the nginx vhost config fles, where is the mistake?<br>
><br>
> thank you.<br>
><br>
> server<br>
> {<br>
> listen 80;<br>
> server_name  <a href="http://www.cnprint.org" rel="noreferrer" target="_blank">www.cnprint.org</a>;<br>
> index index.php index.html index.htm;<br>
> root  /home/website/cnprint;<br>
> location /bbs/ {<br>
> rewrite ^/bbs/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$<br>
> /bbs/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;<br>
> try_files $uri $uri/ /bbs/vbseo.php?$args;<br>
> }<br>
><br>
> location ~ ^/bbs/.+\.php$ {<br>
> fastcgi_pass  <a href="http://127.0.0.1:9000" rel="noreferrer" target="_blank">127.0.0.1:9000</a>;<br>
> fastcgi_param SCRIPT_FILENAME $document_root/bbs/vbseo.php;<br>
> include       fastcgi_params;<br>
> }<br>
><br>
> location = /bbs/attachment.php<br>
> {<br>
> valid_referers none blocked *.<a href="http://cnprint.org" rel="noreferrer" target="_blank">cnprint.org</a> server_names ~\.google\.<br>
> ~\.baidu\. ~\.360\. ~\.bing\.;<br>
> if ($invalid_referer) {<br>
> #    return 403;<br>
>    rewrite ^.*$ <a href="http://www.cnprint.org" rel="noreferrer" target="_blank">http://www.cnprint.org</a>;<br>
> }<br>
> }<br>
<br>
<br>
</span>If you read my message:<br>
<span class="im HOEnZb"><br>
> 2. You need fastcgi stuff in the block as well otherwise it'll just return the attachment.php file.<br>
<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></blockquote></div><br></div>