Symphony CMS on nginx

Warning: This blog post was written a long time ago and might be no longer relevant.

I decided to give a Symphony CMS a try because of its XSLT templating system and structured approach in creating websites. As most of PHP applications it's running on apache out of the box. Since I preffer using nginx I've encountered small problems with the configuration.

During the installation Symphony creates .htaccess file with rewrite definitions for clean URLs. Obviously it works only with apache and rewrites has to be translated into nginx' virtual host definition. Here is my fully working domain configuration for Symphony based websites (it should be included inside the http section):