Ngnix para kumbiaphp bajo linux rewrite

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¿?

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 S.
http://sysoev.ru/en/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs