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