只允许域名打开,禁止ip打开

server {
    listen              443 ssl;
    ...

    if ( $host !~* 'zs.cumt.edu.cn' ) {
        return 403;
    }

    location / {
    ...