caddy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
caddy [2024/04/01 18:21] – melo | caddy [2025/08/16 03:59] (current) – removed melo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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:// | ||
- | * **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 /// | ||
- | |||
- | < | ||
- | |||
- | caddy should detect the caddyfile now. time to edit it! | ||
- | |||
- | so the syntax goes like this: | ||
- | |||
- | < | ||
- | root * / | ||
- | file_server | ||
- | }</ |
caddy.1711995708.txt.gz · Last modified: (external edit)