UPDATE2: Thanks to people who pointed out wiki article http://lithify.me/docs/manual/configuration/servers/nginx.wiki However provided configuration still doesn't resolve issue with "index.php" getting perpended to links.by liepumartins - Migration from Other Servers
UPDATE Changed root to directory "webroot", so now I need less rules. root /var/servers/my_app/app/webroot; # previously it was # root /var/server/my_app; location / { index index.php; try_files $uri $uri/ index.php; } location ~ \.php { fastcgi_pass unix:/tmp/php.socket; fastcgi_index index.php; include fastcgi_by liepumartins - Migration from Other Servers
I would like to deploy lithium framework on nginx (with php-fpm), however I'm stuck transforming .htaccess rules to nginx. Framework has following structure: / |-.htaccess (#1) |-index.php (requires next index.php) |-app/ | |-.htacces (#2) | |-index.php (just requires next index.php) | |-webroot/ | | |-.htaccess (#3) | | |-index.php (the one that finally handleby liepumartins - Migration from Other Servers