Nginx自动列举证书目录

使用 Nginx 的 ngx_http_sub_module 和 ** ngx_http_autoindex_module**  模块构建一个能够自动列举证书目录的服务,这样就不需要PHP了。

server {

    listen 80;

    server_name localhost;

    location = /favicon.ico {

        empty_gif;

    }

    location / {

        root /public;

        autoindex on;

        sub_filter '<h1>Index of /</h1>'  '<h1>Get Certs</h1>';

        sub_filter_once on;

    }

}

Comments

Popular posts from this blog

海外回国代理分流

openwrt设置定时任务-远程唤醒计算机

从Blogger转移