Problem with NginxHttpRefererModule

antituhan dewanggaba at gmail.com
Sun Aug 22 18:46:06 MSD 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100822/1e1df4ae/attachment.html>


More information about the nginx mailing list