Loading more results

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

caddy [2024/04/01 18:12] – created melocaddy [2024/04/01 18:21] (current) melo
Line 8: Line 8:
   * **caddy** - basic but powerful web server software. [[https://caddyserver.com/docs/install|install it according to the caddy docs]]   * **caddy** - basic but powerful web server software. [[https://caddyserver.com/docs/install|install it according to the caddy docs]]
   * **html knowledge** - css knowledge optional   * **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: 
 + 
 +<code>caddy -conf /path/to/Caddyfile</code> 
 + 
 +caddy should detect the caddyfile now. time to edit it! 
 + 
 +so the syntax goes like this: 
 + 
 +<code>example.com { 
 +root * /path/to/site 
 +file_server 
 +}</code>

This theme is made by desbest and Jessica Russell Flint

caddy.1711995122.txt.gz · Last modified: 2024/04/01 18:12 by melo