Hello guys,
I'm completely unexperienced about nginx. In fact, I had no idea of how powerful this little germ was until I tried it myself for the first time two days ago. Anyways, I have been trying to get a cake php application running for more than 24 hours now and I'm getting tired because this is beating me left and right :)
My application is under /newsletter folder in my server and this is what I've come up with to try to get it going:
location /newsletter {
root /home/www/mywebsite/newsletter;
index index.php index.html index.htm;
if (-f $request_filename) {
break;
}
rewrite ^(.+)$ /index.php?url=$1 last;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
When I try to access http://mysite.com/newsletter/ I get a 404 not found :(
Culd you guys help me here, please?