diff options
author | Pacien TRAN-GIRARD | 2013-04-17 14:51:51 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2013-04-17 14:51:51 +0200 |
commit | 8465bf703c826f778f915e80522ee7f1a07750b8 (patch) | |
tree | eeae80bd67ebfe86516fefc013742113097cba06 /README.md | |
parent | be3d1e7f5bc99968d3386625b80f3fbf680db5a7 (diff) | |
download | staticweb-8465bf703c826f778f915e80522ee7f1a07750b8.tar.gz |
First version.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,15 @@ | |||
1 | StaticWeb | 1 | StaticWeb |
2 | ========= | 2 | ========= |
3 | 3 | ||
4 | StaticWeb \ No newline at end of file | 4 | StaticWeb is a basic static files web server written in Go. |
5 | |||
6 | It automatically serves the content of the folder corresponding to the domain of the website. | ||
7 | |||
8 | Usage | ||
9 | ----- | ||
10 | |||
11 | ``./StaticWeb -addr="[Address to listen: 127.0.0.1]" -port="[Port to listen: 80]" -dir="[Absolute or relative path to the root directory to serve: .]" -log="[Absolute or relative path to the log file. Leave empty for stdout]"`` | ||
12 | |||
13 | The program will serve the files in the folder (inside the given root directory) with the same name as the domain from which the request originated. | ||
14 | |||
15 | To serve multiple sites with the same content, you can use symbolic links. \ No newline at end of file | ||