server {
listen 80;
server_name adleytales.com;
root "/Applications/phpstudy/WWW/tp/public";
index index.php index.html index.htm;

location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
}