crocs-muni / sec-certs

Tool for analysis of security certificates and their security targets (Common Criteria, NIST FIPS140-2...).
https://sec-certs.org
MIT License
12 stars 8 forks source link

seccerts.org/docs returns 404 #228

Closed adamjanovsky closed 2 years ago

adamjanovsky commented 2 years ago

@J08nY could we please set .htaccess of webpage to redirect from /url to /url.html or something like that? Ideally, we want to redirect both variants: /docs/ and /docs, I think...

On few places I have these urls and they return 404 currently. In case you don't want to do it fore some reason, just tell me and I'll try to fix the links instead.

J08nY commented 2 years ago

Fixed. Hope I didn't introduce a path traversal vulnerability with this :joy:.

    location /docs {
        root      /var/www/sec-certs/instance;
        gzip      on;
        expires   1d;
        tcp_nodelay off;
        try_files $uri $uri/ /index.html;
    }
J08nY commented 2 years ago

So it seems that by fixing this I messed up the docs upload. Undoing and reopening.

J08nY commented 2 years ago

Fixed via 209279b.