#INFO=name=Yii
location / {
    try_files $uri $uri/ ${template_location}index.php?$args;
}

location ~ /(protected|framework|themes/\w+/views) {
    deny all;
}

