ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ïÇÒÁÎÉÞÅÎÉÅ ÄÏÓÔÕÐÁ ÐÏ I P + php-fcgi





18 ÍÁÑ 2010 Ç. 12:31 ÐÏÌØÚÏ×ÁÔÅÌØ SaveFrom.net <savefrom@xxxxxxxxx> ÎÁÐÉÓÁÌ:
úÄÒÁ×ÓÔ×ÕÊÔÅ.
á Ñ ÎÅ ÓÔÏÒÏÎÎÉË ×ÌÏÖÅÎÎÙÈ ÌÏËÅÊÛÅÎÏ×.
š - location ^/administratorf/.+\.php$ {
š +š location ~* ^/administratorf/.+\.php$ {

š š šallow 192.168.0.0/24
š š šdeny all
š š šfastcgi_pass ...;
š šš fastcgi_index index.php;
š š š...
}


18 ÍÁÑ 2010 Ç. 11:26 ÐÏÌØÚÏ×ÁÔÅÌØ alexboyko <nginx-forum@xxxxxxxx> ÎÁÐÉÓÁÌ:

>õËÁÚÁÔØ ×ÔÏÒÏÊ location ×ÎÕÔÒÉ ÐÅÒ×ÏÇÏ.

åÓÌÉ ÔÁË:

location / {
šlocation ^~ /administrator/ {
šallow 192.168.0.0/24
šdeny all
š}
šroot /www/beta/html;
šindex šindex.html index.php;
}

ÔÏ ÄÏÌÇÏÖÄÁÎÎÙÊ 403 Ñ ÐÏÌÕÞÁÀ ÔÏÌØËÏ ÎÁ http://site.org/administrator, ÎÏ ÎÅ ÎÁ http://site.org/administrator/index.php


åÓÌÉ ÔÁË:

š š š šlocation ~ \.php$ {

š š š š š š š šlocation ~* ^(/administrator/).+\.(php) {
š š š š š š š š š š š šallow 192.168.0.0/24;
š š š š š š š š š š š šdeny all;
š š š š š š š š}
š š š š š š š šrewrite ^/ajaxTags.php /ajax_functions.php last;
š š š š š š š šfastcgi_buffer_size 256k;
š š š š š š š šfastcgi_buffers 6 512k;
š š š š š š š šfastcgi_pass š 127.0.0.1:8000;
š š š š š š š šfastcgi_index šindex.php;
š š š š š š š šfastcgi_param šSCRIPT_FILENAME š/www/beta/html$fastcgi_script_name;
š š š š š š š šinclude š š š šfastcgi_params;
š š š š}

ôÏ ÏÐÑÔØ ÖÅ ÓËÁÞÉ×ÁÀÔÓÑ php-ÓËÒÉÐÔÙ × ÞÉÓÔÏÍ ×ÉÄÅ.

é ÔÏÌØËÏ ÔÁËÉÍ ÏÂÒÁÚÏÍ:
š š š šlocation ~ \.php$ {

š š š š š š š šlocation ~* ^(/administrator/).+\.(php) {
š š š š š š š š š š š šallow 192.168.0.0/24;
š š š š š š š š š š š šdeny all;
š š š š š š š š š š š šfastcgi_buffer_size 256k;
š š š š š š š š š š š šfastcgi_buffers 6 512k;
š š š š š š š š š š š šfastcgi_pass š 127.0.0.1:8000;
š š š š š š š š š š š šfastcgi_index šindex.php;
š š š š š š š š š š š šfastcgi_param šSCRIPT_FILENAME š/www/beta/html$fastcgi_script_name;
š š š š š š š š š š š šinclude š š š šfastcgi_params;

š š š š š š š š}


š š š š š š š šrewrite ^/ajaxTags.php /ajax_functions.php last;
š š š š š š š šfastcgi_buffer_size 256k;
š š š š š š š šfastcgi_buffers 6 512k;
š š š š š š š šfastcgi_pass š 127.0.0.1:8000;
š š š š š š š šfastcgi_index šindex.php;
š š š š š š š šfastcgi_param šSCRIPT_FILENAME š/www/beta/html$fastcgi_script_name;
š š š š š š š šinclude š š š šfastcgi_params;
š š š š}
Ñ ÄÏÂÉÌÓÑ ÎÕÖÎÏÇÏ ÒÅÚÕÌØÔÁÔÁ. îÏ ÍÅÎÑ ÏÞÅÎØ ÓÍÕÝÁÅÔ ÔÏ, ÞÔÏ ÄÕÂÌÉÒÕÅÔÓÑ ÃÅÌÁÑ ÓÅËÃÉÑ ÐÁÒÁÍÅÔÒÏ×. ÎÅÌØÚÑ ÌÉ ÄÏÂÉÔÓÑ ÎÕÖÎÏÇÏ ÒÅÚÕÌØÔÁÔÁ ÂÏÌÅÅ ÉÚÑÝÎÙÍ ÓÐÏÓÏÂÏÍ?

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,87472,87668#msg-87668


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.