nginx設置靜態資源服務器

gzip_types 壓縮的文件類型

gzip_min_length  壓縮的最小長度

gzip  on;
    gzip_min_length 1;
    gzip_comp_level 2;
    gzip_types text/plain applocation/x-javascript text/css applicatio/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;

    server {
        listen       8080;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            #root   html;
            alias dlib/;
            index  index.html index.htm;
        }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章