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: rewrite rule


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: rewrite rule
  • From: <alexey.bobok@xxxxxxxxx>
  • Date: Fri, 30 Mar 2012 15:17:05 +0300
  • Cc: nginx-ru-announce@xxxxxxxxx
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=3u5oOqu9W8TpwUudhqyqfHMOG4W5n0ypaE+Kp+pApwg=; b=b15zV2E63wKWfo+W9bUbRxs3S+iAsd00tPH0CHfA+8nkzYo4CUdX8F+tsnRfu8ca44 Mc3n3qACjSKguXlqAhAzmmEi7nox1J3bu3RnbAXVwvk8ddK2ImmJ7CP/+r+6lxSLg1ZY CMH2AxBf+U+Ma7msV8YASIIAzUUDp5cymEhFu3+yh8EiOyXu3Z7xbcMFpbQAKSM+c21b DStFD4xR74KvKbMJAbdSxYI++HejtqOr4anWZamy1ZNZNQ/tCQahnXDXv+OczevsEVe8 8m0ER3CL02oQyIm64xn1NBTazEsSKMs/G4zzLH9aYB0a6p3tfc58jZedoOjmrCIFbmOT PcSQ==
  • In-reply-to: <534481333109303@web62.yandex.ru>
  • References: <534481333109303@web62.yandex.ru>

30 2012. 15:08 Stepanov Dmitriy <dmitriy.st1964@xxxxxxxxx> :
,

location /stuff / {
proxy_pass http://12.34.56.78:1088;
}

- if . , if location, : ӣ, ̣ index.php?

server {
listen 80;
server_name www.example.ru;
?
root /var/www/site;
index index.php;

if ($request_filename !~* \.(js|txt|gif|jpg|jpeg|png|css|swf|html|xml|xls|php|)$) {
rewrite ^(.*)$ /index.php;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/site$fastcgi_script_name;
include fastcgi_params;
}

location /stuff / {
proxy_pass http://12.34.56.78:1088;
}

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

ؚ /stuff/, :
location ~* /stuff / {
proxy_pass http://12.34.56.78:1088;
}


--
Think before you print.
Best regards, Alexey Bobok.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.