if ( $host != www.ct1.com )
{
rewrite ^.*login.php$ http://$host/ last;
}
location ~ .*\.php$
{
allow all;
include enable-php.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/www.ct1.com.log;
}
}
原文地址:http://blog.51cto.com/11972980/2094138