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: mod_rewrite


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: mod_rewrite
  • From: "nalim[1nc]" <nalim1nc@xxxxxxxxx>
  • Date: Tue, 23 Nov 2010 11:34:37 +0300
  • 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=muyj9CugNui1nM613mYStppJqsZ2sLWSSnlxWDW1UbM=; b=yBqJ86oRvnVxZ4SwGexDDQR0bhNMvI2GxRjElySiC5BU6Y0/f7m9Ut1O4+ejvdjalL VMCvFvPorMc0+Dg/5Lu0JhJ4jsgXgkjB5uTvj+gWRa2VH3F58L3fByWlTZgPcd2kzkv/ ZB7jcK7n/5HBUJhp21D6FCGyHxESqK2SBbvhQ=
  • 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=KvPLCBISsJkEsg2kF4zNNJLzWoiMmOCXieV2ZbHzgELkhGLn+IpblL+VT0Nmq6Gpcw 7rZbgeXxrYt5NZXns6OKLuBWwax0mdK6z7hAHoKLHH05W6ekJ4wfhjHuw9XeIVDfVPHn AnHuhQTO20OF0QYeZuNU2CBymGowFuU2NWHqI=
  • In-reply-to: <AANLkTimx81HtzfLBHLW0c+O7mJ_SLmknQXsE7hoT64Jn@xxxxxxxxxxxxxx>
  • References: <AANLkTi=tLUmrv59_bym_qr-Z0MaEPs7bO=LsvgQJsrLC@xxxxxxxxxxxxxx> <AANLkTimx81HtzfLBHLW0c+O7mJ_SLmknQXsE7hoT64Jn@xxxxxxxxxxxxxx>

: RewriteRule ^([^.]*[^./]\.html)?$ /php/index.php [L].

.


23 2010. 11:12 Boris Dolgov <boris@xxxxxxxxxxx> :
2010/11/22 nalim[1nc] <nalim1nc@xxxxxxxxx>:
> .
>
> mod_rewrite, nginx
> . , .

server { server_name fastcook.ru; location / { rewrite ^
http;//www.fastcook.ru$request_uri?; } }
server
{
root /var/www/www.fastcook.ru;
server_name www.fastcook.ru;
location = /admin
{
rewrite ^ /admin/ redirect;
}
location ~\.php$
{
fastcgi_pass / proxy_pass ...;
}
location /
{
try_files $uri $uri/ @fallback;
}
location @fallback
{
fastcgi_pass ..;
fastcgi_param SCRIPT_FILENAME $document_root/php/index.php;

}

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



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


 




Copyright © Lexa Software, 1996-2009.