nginx virtual host not found

view full story

http://serverfault.com – I'm trying to setup a cakephp development enviroment with nginx. The nginx + php was successful instaled since I get the right response from phpinfo(); But when I try to setup a virtual host located inside my home dir the nginx returns 404 response. Take a look at virtual host conf: server { listen 80; server_name www.camisa10_cake.com; rewrite ^/(.*) http://camisa10_cake.com/$1 permanent; } server { listen 80; server_name camisa10_cake.com; location / { root /home/pedro/dev/pessoais/camisa10_cake; index index.php index.html index.htm (HowTos)