server
    {
        listen 80;
        #listen [::]:80;
        server_name 自己的域名;
        index index.html index.htm index.php default.html default.htm default.php;
        root 路径;

        include none.conf;
        #error_page   404   /404.html;
        #include enable-php.conf;
        include enable-php-pathinfo.conf;
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log 日志;
    }