mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Updated Home (markdown)
parent
afce4ba7e0
commit
ca42137557
26
Home.md
26
Home.md
@ -1,29 +1,13 @@
|
|||||||
Caddy
|
Caddy
|
||||||
=====
|
=====
|
||||||
|
|
||||||
Caddy is a general-purpose web server that's easy to use.
|
[Caddy](https://caddyserver.com) is a general-purpose web server that's easy to use.
|
||||||
|
|
||||||
Quick Start
|
Please see [the Caddy website](https://caddyserver.com/docs) or the [README](https://github.com/mholt/caddy/blob/master/README.md) for instructions and documentation.
|
||||||
------------
|
|
||||||
|
|
||||||
To start a static file server in the current directory, get Caddy and run:
|
|
||||||
|
|
||||||
```
|
### This wiki is for developers
|
||||||
$ caddy
|
|
||||||
```
|
|
||||||
|
|
||||||
Then load localhost:8080 in your browser.
|
The pages of this wiki serve as a guide for developers who would like to hack on the project or use its middleware in their own Go programs.
|
||||||
|
|
||||||
Chances are, though, that you want to serve pages under a different hostname (your domain) and port (80 or 443).
|
All are invited to edit and improve this wiki.
|
||||||
|
|
||||||
1. Make a file called `Caddyfile` with these contents:
|
|
||||||
|
|
||||||
```
|
|
||||||
mydomain.com:80
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Run `caddy`. If the Caddyfile isn't in the current directory, specify the path: `caddy -conf=/path/to/Caddyfile`
|
|
||||||
|
|
||||||
3. To configure Caddy further, refer to the Caddyfile documentation.
|
|
||||||
|
|
||||||
You can extend Caddy by writing middleware for it. How to do that is (basically) described in this wiki -- see the other pages.
|
|
Loading…
x
Reference in New Issue
Block a user