<div>.</div><div>     .</div><div><br></div>location ^/administratorf/.+\.php$ {<br>  allow <a href="http://192.168.0.0/24">192.168.0.0/24</a><br><div>  deny all<br></div><div>
  fastcgi_pass ...;</div><div>                        fastcgi_index index.php;<br></div><div>  ...</div>                }<br><div><br></div><div><br></div><div class="gmail_quote">18  2010 . 11:26  alexboyko <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt;  location  .<br>
<br>
</div> :<br>
<br>
location / {<br>
<div class="im">location ^~ /administrator/ {<br>
 allow <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a><br>
 deny all<br>
}<br>
</div><div class="im">root /www/beta/html;<br>
index index.html index.php;<br>
}<br>
<br>
</div>  403     <a href="http://site.org/administrator" target="_blank">http://site.org/administrator</a>,    <a href="http://site.org/administrator/index.php" target="_blank">http://site.org/administrator/index.php</a><br>

<br>
<br>
 :<br>
<br>
    location ~ \.php$ {<br>
<br>
        location ~* ^(/administrator/).+\.(php) {<br>
<div class="im">            allow <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a>;<br>
</div>            deny all;<br>
<div class="im">        }<br>
        rewrite ^/ajaxTags.php /ajax_functions.php last;<br>
        fastcgi_buffer_size 256k;<br>
        fastcgi_buffers 6 512k;<br>
        fastcgi_pass  <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>;<br>
        fastcgi_index index.php;<br>
</div>        fastcgi_param SCRIPT_FILENAME /www/beta/html$fastcgi_script_name;<br>
        include    fastcgi_params;<br>
    }<br>
<br>
    php-   .<br>
<br>
   :<br>
    location ~ \.php$ {<br>
<br>
        location ~* ^(/administrator/).+\.(php) {<br>
<div class="im">            allow <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a>;<br>
</div>            deny all;<br>
<div class="im">            fastcgi_buffer_size 256k;<br>
            fastcgi_buffers 6 512k;<br>
            fastcgi_pass  <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>;<br>
            fastcgi_index index.php;<br>
</div>            fastcgi_param SCRIPT_FILENAME /www/beta/html$fastcgi_script_name;<br>
            include    fastcgi_params;<br>
<br>
        }<br>
<br>
<div class="im"><br>
        rewrite ^/ajaxTags.php /ajax_functions.php last;<br>
        fastcgi_buffer_size 256k;<br>
        fastcgi_buffers 6 512k;<br>
        fastcgi_pass  <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>;<br>
        fastcgi_index index.php;<br>
</div>        fastcgi_param SCRIPT_FILENAME /www/beta/html$fastcgi_script_name;<br>
        include    fastcgi_params;<br>
    }<br>
   .     ,     .        ?<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,87472,87668#msg-87668" target="_blank">http://forum.nginx.org/read.php?21,87472,87668#msg-87668</a><br>
<div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://nginx.org/mailman/listinfo/nginx-ru</a><br>
</div></div></blockquote></div><br>