ngnix para kumbiaphp bajo linux rewrite
Igor Sysoev
igor at sysoev.ru
Sat Feb 27 01:18:10 MSK 2010
On Fri, Feb 26, 2010 at 09:51:56PM +0100, José Alberto wrote:
> Alquien sabe como poner:
>
> url.rewrite += ( "^/kumbiaphp/$" => "/kumbiaphp/app/public/" )
> url.rewrite += ( "^/kumbiaphp/([^\.]*)$" =>
> "/kumbiaphp/app/public/index.php?url=/$1" )
> url.rewrite += ( "^/kumbiaphp/(.+)$" => "/kumbiaphp/app/public/$1" )
>
> De tal modo que lo entienda ngnix¿?
This is English only mailing list.
As to your question, probably you need something liek this:
location /kumbiaphp/ {
alias /kumbiaphp/app/public/;
}
location ~ ^/kumbiaphp(/[^\.]+)$ {
fastcgi_pass ...
fastcgi_param SCRIPT_FILENAME /kumbiaphp/app/public/index.php;
fastcgi_param QUERY_STRING url=$1;
# other fastcgi params
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list