ðòïåëôù 


  áòèé÷ 


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


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: ÷ÏÚÍÏÖÎÏ ÜÔÏ ÂÁÇ × ÏÂÒÁÂÏÔËÅ location
  • From: áÌÅËÓÅÊ ÷ÏÓÔÒÉËÏ× <alex@xxxxxxxxxxxxxxxx>
  • Date: Thu, 09 Feb 2012 16:34:50 +0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=teletrade-dj.com; s=dkim; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=HhZ476SRmBd33Nbo+FcQx+0uYhQFYq58dqTVPjEsz70=; b=JkSIMiooLoWvfzLHfLi6jTagCNlSmVLwV9IgH/CRCYjYm0M0o932aOWSnKAYxAIACvH/l6ajYBFB239OewN4LqzW5iL9WZnJaJ+9rKsM0c7Y6WjD6JYVX1iJhwhTVBBv+7Cwx8QZJMCSAE5QA/fUNXCsdkXnGa6fROvJgCIi7p4=;
  • In-reply-to: <CAENWr1LdD9tCuNV-v=XHK4KYyXrdCzmjssSa=x=xDLehHxWPtg@mail.gmail.com>
  • References: <4F33A390.90400@teletrade-dj.com> <CAENWr1LdD9tCuNV-v=XHK4KYyXrdCzmjssSa=x=xDLehHxWPtg@mail.gmail.com>

þÔÏ ÉÍÅÎÎÏ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ?

ÅÓÌÉ Ñ × ËÏÎÆÉÇÅ ÕËÁÖÕ šš location š/pa/ {...}

ÔÏ:

http://www.xxx.com/pa - ÏÂÒÁÂÁÔÙ×ÁÅÔÓÑ ËÏÒÎÅ×ÙÍ ÉÎÄÅËÓÏÍ Á ÎÅ ÐÏÓÔÆÉËÓÁÄÍÉÎÏ×ÓËÉÍ
http://www.xxx.com/pa/šš - ×ÙÄÁÅÔ ÏÛÉÂËÕ 403
http://www.xxx.com/pa/index.php - ÐÒÅÄÌÁÇÁÅÔ ÓËÁÞÁÔØ ÉÓÈÏÄÎÙÊ ËÏÄ index.php

ÐÏÍÏÇÉÔÅ ÔÏÇÄÁ ÐÒÁ×ÉÌØÎÏ ÓËÏÎÆÉÇÕÒÉÔØ
ÔÁË ÞÔÏÂÙ
http://www.xxx.com/pa - ÐÏËÁÚÙ×ÁÌ ÐÏÓÔÆÉËÓÁÄÍÉÎ

http://www.xxx.com/partner - ÏÂÒÁÂÁÔÙ×ÁÌÓÑ ËÏÒÎÅ×ÙÍ ÉÎÄÅËÓÏÍ

09.02.2012 14:59, Yuriy Vidineev ÐÉÛÅÔ:
ðÏ-ÍÏÅÍÕ, ×ÐÏÌÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÏÐÉÓÁÎÎÏÍÕ ÚÄÅÓØ ÐÏ×ÅÄÅÎÉÀ:
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
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.