location ~* /(config\.php|\.sql)$ {
    deny all;
    return 404;
}

location ^~ /rewrite/ {
    deny all;
    return 404;
}

location ~ ^/beian/ICP-([0-9]+)\.html$ {
    try_files $uri /beian.php?num=$1;
}

location ~ ^/list-([0-9]+)\.html$ {
    try_files $uri /list.php?page=$1;
}

location = /go/go.php {
    try_files $uri /go.php;
}
