Помогите пожалуйста создать правила Nginx....
Для апача выглядело так:
[code]
<FilesMatch "(\.(engine|.*sql|templates|tpl(\.php)?|xtmpl))$">
Order allow,deny
</FilesMatch>
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google\.com/ [nc]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google\.ru/ [nc]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yandex\.ru/ [nc]
RewriteRule (http://(.*)\.www\.site\.ru/)?(.*)\.(jpeg|jpg)$ /marker.php?img=$3.$4
[/code]