Skip Navigation
datahoarder @lemmy.ml hyperreal @lemmy.hyperreal.coffee

My dank internet archive stash

It's mostly old computer and gaming magazines at this time.

12

You're viewing a single thread.

12 comments
  • What software are you using on the server to list the directories?

    • I'm using the Caddy web server. Yeah, the directory listing is more aesthetically satisfying than other web server software. I also like how it shows the sizes of the files as a bar with the number inside it so you can visually see size comparisons between the files.

      • Yeah I would totally use that for nginx.

        • If you use Caddy web server, you don't need Nginx. Caddy and Nginx are both web servers. I prefer Caddy over Nginx, Apache, and other web servers because of its simplicity and the ability to have automatic HTTPS.

          • The page design of the directory listings are built in to the web server software. So this isn't something you can add to Nginx or Apache. There is a way to change the appearance of how files from the directory listing are displayed, but you'd need to use PHP or JavaScript with CSS or something to implement a front-end for it, and it wouldn't be anything you'd add to the web server configuration. If you look at https://beta.the-eye.eu/public/, they are using JavaScript and CSS to implement a dynamic front-end for the directory listing.

            • Yes, I’m aware… however there’s nothing making it so we can’t port the directory listing from caddy (most likely just HTML/JS) into nginx. Or, someone might already have done it, I guess will have a look.

              • I see what you mean. As far as I'm aware, I think that's builtin to the web server software. So it's not something you can change in Nginx to make it look like Caddy, nor can you modify Caddy's configuration. I think the most Caddy does is change the background colors and font colors to match the user's browser's preference of light or dark mode, but this is builtin to the source code, so you can't modify the colors unless you fork Caddy and change the source code yourself.

You've viewed 12 comments.