Cazuela on Nginx - maraya/cazuela GitHub Wiki

If you pretend deploy cazuela on Nginx, you must create new rewrite rules because older ones (Apache) aren't compatible with this new ones.

  1. If your document root points to webroot

    rewrite ^/(.)/(.).(json|xml|yml)$ /index.php?__class=$1&__method=$2&__type=$3 last;

  2. If your document root doesn't point to webroot

    rewrite ^/(.)/(.).(json|xml|yml)$ /webroot/index.php?__class=$1&__method=$2&__type=$3 last;