Welcome! Log In Create A New Profile

Advanced

Re: how to forbidden other site stealing my forum attachment ?

June 20, 2016 02:12AM
Hello,Edho Arief
sorry, just be not careful to understand.
It's ok now, thank again.

2016-06-20 13:55 GMT+08:00 Edho Arief <me@myconan.net>:

> Hi,
>
> On Mon, Jun 20, 2016, at 14:54, 二戒 wrote:
> > sorry. I have found my forum can't show attachment now.
> >
> > blow is the nginx vhost config fles, where is the mistake?
> >
> > thank you.
> >
> > server
> > {
> > listen 80;
> > server_name www.cnprint.org;
> > index index.php index.html index.htm;
> > root /home/website/cnprint;
> > location /bbs/ {
> > rewrite ^/bbs/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$
> > /bbs/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
> > try_files $uri $uri/ /bbs/vbseo.php?$args;
> > }
> >
> > location ~ ^/bbs/.+\.php$ {
> > fastcgi_pass 127.0.0.1:9000;
> > fastcgi_param SCRIPT_FILENAME $document_root/bbs/vbseo.php;
> > include fastcgi_params;
> > }
> >
> > location = /bbs/attachment.php
> > {
> > valid_referers none blocked *.cnprint.org server_names ~\.google\.
> > ~\.baidu\. ~\.360\. ~\.bing\.;
> > if ($invalid_referer) {
> > # return 403;
> > rewrite ^.*$ http://www.cnprint.org;
> > }
> > }
>
>
> If you read my message:
>
> > 2. You need fastcgi stuff in the block as well otherwise it'll just
> return the attachment.php file.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to forbidden other site stealing my forum attachment ?

wangyu1314 June 20, 2016 01:22AM

Re: how to forbidden other site stealing my forum attachment ?

Edho Arief June 20, 2016 01:32AM

Re: how to forbidden other site stealing my forum attachment ?

wangyu1314 June 20, 2016 01:46AM

Re: how to forbidden other site stealing my forum attachment ?

wangyu1314 June 20, 2016 01:56AM

Re: how to forbidden other site stealing my forum attachment ?

Edho Arief June 20, 2016 01:56AM

Re: how to forbidden other site stealing my forum attachment ?

wangyu1314 June 20, 2016 02:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready