server
{
listen 80;
#listen [::]:80;
server_name tpblog.yeves.com;
index index.html index.htm index.php default.html default.htm default.php;
root /www/my/tpblog/public;
include other.conf;
#error_page 404 /404.html;
include enable-php.conf;
location /{
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*.(js|css)?$
{
expires 12h;
}
location ~ /.
{
deny all;
}
}