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: . Yii



server {
listen 80;
server_name corpix.ru www.corpix.ru;
location / {
#
}
}

server {
listen 80;
server_name ~ ^(.+?)\.corpix\.ru$;
set $uid $1;
location / {
try_files $uri $uri/ @blog;
}
location @blog {
fastcgi_pass ...;
fastcgi_param SCRIPT_FILENAME /path/to/php/scripts/index.php;
fastcgi_param PATH_INFO /$host;
fastcgi_param QUERY_STRING blogName=$uid;
include fastcgi_params;
}
}

13.08.09, 03:20, " -" <i.am.corpix@xxxxxxxxx>:
. :
location / {
if ($host ~* "^(([a-z0-9_\-]+)\.corpix.ru)$") {
set $uid $2;
rewrite ^(.*)$ /index.php/$1?blogName=$uid last;
}

}



13 2009 . 3:04 Alexey V. Karagodov <kav@xxxxxxxxxxxxxx> :
- :

rewrite ^/(.*)$ / last;
break;


On 13.08.2009, at 2:29, - wrote:

GET . , ,

if (!-e $request_filename){
# ^^^ error_page 404, if- - ...

rewrite (.*) /index.php/$1 last;
+ break;

}


location ~ "\.(js|ico|gif|jpg|png|css)$" {
root /www/corpix.ru/pub/;
}


ݣ - GET
.



12 2009 . 21:34 Igor Sysoev <is@xxxxxxxxxxxxx>:

On Wed, Aug 12, 2009 at 08:13:23PM +0400, - wrote:

. Yii(http://yiiframework.com)
livejournal .
... ...


..
servername corpix.ru *.corpix.ru
# index.php
if (!-e $request_filename){
rewrite (.*) /index.php/$1 last;
}

if ($host ~* "^(([a-z0-9_\-]+)\.corpix.ru)$") {
set $uid $2;
rewrite ^(.*)$ /$1?blogName=$uid last;
}

blogName . , -
,
... .
.

- ?

aaa.corpix.ru/bbb
aaa.corpix.ru/.jpg

?


--

http://sysoev.ru







--
br, Denis F. Latypoff.

 




Copyright © Lexa Software, 1996-2009.