diff options
Diffstat (limited to 'md/writeup/basic_http_server.md')
-rw-r--r-- | md/writeup/basic_http_server.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/md/writeup/basic_http_server.md b/md/writeup/basic_http_server.md index cd1b4de..249c390 100644 --- a/md/writeup/basic_http_server.md +++ b/md/writeup/basic_http_server.md @@ -4,17 +4,17 @@ keywords:c,http,server # Basic HTTP server Basic HTTP server. When you type url it shows listing of your local directory. If you tipe with path to file name noting hapens Use: -``` +```sh http://*.*.*.*:<port>/ -> disk start directory http://*.*.*.*:<port>/home/ -> home directory ``` Run: -``` +```sh ./server [port] ``` Compile: -``` +```sh gcc server.c -o server ``` |