====== extremely bare bones website server guide ====== i'm bored and wanted to write a guide on how to launch the most basic web server ever to serve a static webpage directory. i'm using caddy because that's what i already use and it literally makes things shit easy ===== requirements ===== * **no cgnat router** - look up the model of your router. if you're under cgnat i can't help you (for now?) because reasons * **caddy** - basic but powerful web server software. [[https://caddyserver.com/docs/install|install it according to the caddy docs]] * **html knowledge** - css knowledge optional ===== caddy usage ===== the caddyfile is where everything that configures your server will live. it's extremely easy to use but official caddy docs are confusing about it so i'll try to simplify. the file is in different locations depending on your OS. for linux, that location is ///etc/caddy/// and the file is just **Caddyfile** with no extension. i don't know where it is elsewhere and/or if it's not there for you as a linux user, then create the caddyfile anywhere in your system, then type the following in your terminal: caddy -conf /path/to/Caddyfile caddy should detect the caddyfile now. time to edit it! so the syntax goes like this: example.com { root * /path/to/site file_server }