Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Killaship authored May 17, 2023
1 parent 8876eb6 commit 28222ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
A simple HTTP server written in Python.

<img width="244" alt="image" src="https://github.com/Killaship/pyserver/assets/69988679/cc924298-6889-4e7e-8a95-b57add1c49f0">

It can load content to be served from a file, and it also gets the location of that stuff from the configuration file.

The config file reads stuff based off lines.
The first line is the address to host the server on. Second line is the port.
Third line is the server version, and the last line is the location of the source file to be served.

The server version is A, nice to know, and B, goes in the HTTP response sent to a client.

Run ```sudo python3 main.py``` to run the web server. (You might not need the sudo on your system, but I did when I tested it.)

0 comments on commit 28222ae

Please sign in to comment.