ðòïåëôù 


  áòèé÷ 


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: ÷ÏÚÍÏÖÎÏ ÜÔÏ ÂÁÇ × ÏÂÒÁÂÏÔËÅ location



ðÏ-ÍÏÅÍÕ, ×ÐÏÌÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÏÐÉÓÁÎÎÏÍÕ ÚÄÅÓØ ÐÏ×ÅÄÅÎÉÀ:
http://nginx.org/ru/docs/http/ngx_http_core_module.html#location

9 ÆÅ×ÒÁÌÑ 2012šÇ. 16:44 ÐÏÌØÚÏ×ÁÔÅÌØ áÌÅËÓÅÊ ÷ÏÓÔÒÉËÏ× <alex@xxxxxxxxxxxxxxxx> ÎÁÐÉÓÁÌ:
ðÏÞÅÍÕÔÏ ÎÁ ÎÉÖÅÐÒÉ×ÅÄÅÎÎÏÍ ËÏÎÆÉÇÅ
http://www.xxx.com/partner
ÏÂÒÁÂÁÔÙ×ÁÅÔÓÑ × ÌÏËÅÊÛÉÎÅ /pa , Á ÎÅ × ËÏÒÎÅ
nginx-full š 1.1.8-2~bpo60+1 š debian squeeze-backports
-----------------------%<--------------------------------------------------------------
server {

š šlisten š 12.34.56.78:80;
š šserver_name
š š š šwww.xxx.com
š š š šxxx.com
š š;

š šaccess_log š š/sites/xxx.com/log/access.log;
š šerror_log š š /sites/xxx.com/log/error.log;

š šroot š /sites/xxx.com/www;

š šlocation / {
š š š šroot š /sites/xxx.com/www;
š š š šindex index.php;
š š š štry_files $uri $uri/ /index.php?$args ;

š š š šlocation ~ \.php$ {
š š š š š štry_files $uri /index.php?$args ;
š š š š š šinclude fastcgi_params;
š š š š š šfastcgi_param šDOCUMENT_ROOT š š š š š /sites/xxx.com/www;
š š š š š šfastcgi_param šSCRIPT_FILENAME š š š š /sites/xxx.com/www$fastcgi_script_name;
š š š š š šfastcgi_param šQUERY_STRING š š š š š š$args;
š š š š š šfastcgi_pass 127.0.0.1:9000;
š š š š}
š š}

š šlocation /.a {
š š š šindex index.php;
š š š štry_files $uri $uri/ /.a/index.php?$args;

š š š šlocation ~ \.php$ {
š š š š š štry_files $uri /.a/index.php?$args ;
š š š š š šroot š /sites/xxx.com/www;
š š š š š šinclude fastcgi_params;
š š š š š šfastcgi_param šDOCUMENT_ROOT š š š š š /sites/xxx.com/www;
š š š š š šfastcgi_param šSCRIPT_FILENAME š š š š /sites/xxx.com/www$fastcgi_script_name;
š š š š š šfastcgi_param šQUERY_STRING $args;
š š š š š šfastcgi_pass 127.0.0.1:9000;
š š š š}
š š}

š šlocation š/pa {
š š š šalias /usr/share/postfixadmin;
š š š šindex index.php;

š š š šlocation ~ /pa/(.*\.php)$ {
š š š š š šalias /usr/share/postfixadmin;
š š š š š šfastcgi_pass 127.0.0.1:9000;
š š š š š šfastcgi_index index.php;
š š š š š šinclude fastcgi_params;
š š š š š šfastcgi_param šSCRIPT_FILENAME š š š š /usr/share/postfixadmin/$1;
š š š š š šfastcgi_param šDOCUMENT_ROOT š š š š š /usr/share/postfixadmin;
š š š š}
š š}
}
-----------------------%<--------------------------------------------------------------

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



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


 




Copyright © Lexa Software, 1996-2009.