Problem with NginxHttpRefererModule

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


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 *;
        if($invalid_referer) {
            return 404;

But this error occur :

Starting nginx: [emerg]: unknown directive "if($invalid_referer)" in

How to fix this problem ?

Thanks in advance :)
View this message in context:
Sent from the nginx mailing list archive at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list