A simple static web server made using socket programming in C.
In order to build the server, GNC GCC must be installed in your system.
GNU Make can also be installed if you want to use the make
command.
To compile the programme using GCC, run:
gcc -Wall -Wextra -g -o server server.c
To run the server:
./server
Using make
, we can build and run the server with ease.
To build the server:
make build
To build and run the server:
make run
To terminate the server, you can hit Ctrl + C within the terminal.
You can create and place static web pages in the htdocs folder which will be served when the server is running.
Feel free to contribute to this project and treat it as your own.
Nipun Chamikara Weerasiri - nipunchamikara