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: Slava Kokorin <slava.kokorin@xxxxxxxxx>
  • Date: Fri, 23 Jul 2010 12:17:42 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=EgwzziQ3/sxiJIcOnw3tykd476LISYvDWVtej8JIj04=; b=xlvWyVSnrstDjenWIgeGU5h/rrE3HgRXIYG28hwpjzqweZ25kCzDc0vIlUBb86pfrL f8bZnOzr+XQErZg1ljKjnv1wL1vHgytldHk5Tzb/6inv96l6vfswcufoZURUsB2r9KIe JSjFd8k03zl4R6izdaXMRpoiicIi5nlQQvahk=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cbBNVd+ohjy8AjRzAAImNm+ruDwxBmNN6slW9Hm52nQcxOtNPFtYGN5XXp0rDUzWYg O8ICxzNYujyN8NsMAdsjz9b2h/S5xQ+fvZ5aPG1N7TdKfvGmXexfjKYS4iOK1bVgibA3 +exo7iEsJhdGtTNn7uaTWl/6dTt5Ej0aaUzGw=
  • In-reply-to: <fb97c35f7792a03edd5d3b9a76fc714b.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <fb97c35f7792a03edd5d3b9a76fc714b.NginxMailingListRussian@xxxxxxxxxxxxxxx>

, .. location / {} location ~ \.php {} ,
location ~ \.php {} .


23 2010 . 10:53 nsklt <nginx-forum@xxxxxxxx> :
:
server {
listen 80;
server_name mysite;

location / {
proxy_pass http://127.0.0.1:8086/;
include /etc/nginx/proxy.conf;
}

location ~ \.php {
proxy_pass http://127.0.0.1:8086;
include /etc/nginx/proxy.conf;
}
location ~*
^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|flv|mp3)$
{
root /home/webmaster/www/mysite/;
}
}

,
. [b] -
, location ~ \.php[/b]
(
php -
file.php/1.jpg 1.jpg)
.

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


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



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


 




Copyright © Lexa Software, 1996-2009.