Welcome! Log In Create A New Profile

Advanced

Problem with NginxHttpRefererModule

antituhan
August 22, 2010 10:52AM
Hi,


My server using nginx/0.8.49, and I try to using NginxHttpRefererModule.

This is my configuration :

location / {
root /var/www/iKocok/;
index index.html index.htm index.php;
valid_referers server_names blocked none *.antituhan.com;
if($invalid_referer) {
return 404;
}
}


But this error occur :

Starting nginx: [emerg]: unknown directive "if($invalid_referer)" in
/etc/nginx/sites-enabled/antituhan.com:11


How to fix this problem ?

Thanks in advance :)
--
View this message in context: http://nginx.2469901.n2.nabble.com/Problem-with-NginxHttpRefererModule-tp5449838p5449838.html
Sent from the nginx mailing list archive at Nabble.com.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with NginxHttpRefererModule

antituhan August 22, 2010 10:52AM

Re: Problem with NginxHttpRefererModule

Piotr Sikora August 22, 2010 11:24AM

Re: Problem with NginxHttpRefererModule

antituhan August 23, 2010 02:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
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