Firebird News

Sunday, July 20, 2008

Tips for configuring nginx for cake php

Here are the rewrite rules to use for nginx, seems that i will need to solve the img problems

location / {
root /var/www/cake/app/webroot;
index index.php index.html;
# If the file exists as a static file serve it
# directly without running all
# the other rewite tests on it
if (-f $request_filename) {
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;

here is my nginx config that you can take as example


Popa Adrian Marius said...

seems that i have to make rewrite rule to poit to


Popa Adrian Marius said...

i will fix it soon