Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
70b75d14
Commit
70b75d14
authored
Jun 26, 2016
by
Harrison Heck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix go get url
Fixes #904
parent
15fa5cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+5
-5
No files found.
README.md
View file @
70b75d14
...
...
@@ -6,8 +6,8 @@ Caddy is a general-purpose web server for Windows, Mac, Linux, BSD, and
[
Android
](
https://github.com/mholt/caddy/wiki/Running-Caddy-on-Android
)
. It is
a capable but easier alternative to other popular web servers.
[
Releases
](
https://github.com/mholt/caddy/releases
)
·
[
User Guide
](
https://caddyserver.com/docs
)
·
[
Releases
](
https://github.com/mholt/caddy/releases
)
·
[
User Guide
](
https://caddyserver.com/docs
)
·
[
Community
](
https://forum.caddyserver.com
)
...
...
@@ -50,7 +50,7 @@ pre-built binaries
`curl https://getcaddy.com | bash`
Once
`caddy`
is in your PATH, you can
`cd`
to your website's folder and run
`caddy`
to serve it. By default, Caddy serves the current directory at
`caddy`
to serve it. By default, Caddy serves the current directory at
[
localhost:2015
](
http://localhost:2015
)
.
To customize how your site is served, create a file named Caddyfile by your
...
...
@@ -71,7 +71,7 @@ header /api Access-Control-Allow-Origin *
When you run
`caddy`
in that directory, it will automatically find and use
that Caddyfile to configure itself.
This simple file enables compression, allows directory browsing (for folders
This simple file enables compression, allows directory browsing (for folders
without an index file), hosts a WebSocket echo server at /echo, serves clean
URLs, logs requests to access.log, proxies all API requests to a backend on
port 7005, and adds the coveted
`Access-Control-Allow-Origin: *`
header for
...
...
@@ -97,7 +97,7 @@ the [CLI documentation](https://caddyserver.com/docs/cli) for details.
Note: You will need
**[Go 1.6](https://golang.org/dl/)**
or newer.
1.
`go get github.com/mholt/caddy`
1.
`go get github.com/mholt/caddy
/caddy
`
2.
`cd`
into your website's directory
3.
Run
`caddy`
(assumes
`$GOPATH/bin`
is in your
`$PATH`
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment