Skip to content

nipunchamikara/c-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Web Server

License: MIT

A simple static web server made using socket programming in C.

Getting started

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.

Building and running the server

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.

Serving web pages

You can create and place static web pages in the htdocs folder which will be served when the server is running.

Contributing

Feel free to contribute to this project and treat it as your own.

Author

Nipun Chamikara Weerasiri - nipunchamikara

About

A static web server written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published