This is a simple HTTP server implemented in C that serves static files and supports basic GET requests.
Before running this server, ensure you have the following installed on your system:
- C compiler (e.g., gcc)
- make
-
Clone this repository to your local machine:
git clone https://github.com/devimalka/httpserver.git
-
Navigate to the project directory:
cd httpserver
-
Build the server using
make
:make
To start the HTTP server, run the following command:
./output
By default, the server listens on port 8080. You can access it by navigating to http://localhost:8080 in your web browser.