MoeSS在Nginx、LNMP的服务器中 伪静态的配制方法

本人SS站点:VPN.OHDAY.CN 所以直接给出配置文件,你们酌情修改

include other.conf;
        #error_page   404   /404.html;
        include enable-php.conf;
        
        location / {
            try_files $uri $uri/ /index.php$is_args$args;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

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

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/vpn.ohday.cn.log;
    }


喜欢 0