- Written from scratch in C using linux sockets
- Serves static HTML websites
- Supports HTTP adequately
Please note this only works on linux (and potentially mac?), as it makes exclusive use of unix sockets for networking.
- Clone this repo
git clone https://github.com/Salmoneer/fileserver.git- Compile and run
make
make run- Connect to the server
Navigate to http://127.0.0.1:8069 in your browser (while the server is running).
You should see served to you whatever is in the
contentfolder (default toindex.html). Currently, the server only reports files as html or css, based on file extension.