An open API service indexing awesome lists of open source software.

https://github.com/atmegabuzz/weebserver

Simple Webserver Implementation using Sockets
https://github.com/atmegabuzz/weebserver

cpp hacktoberfest hacktoberfest2022 sockets webserver

Last synced: 12 months ago
JSON representation

Simple Webserver Implementation using Sockets

Awesome Lists containing this project

README

          


# webserver

A Simple implementation of a Static webserver from scratch. being a simple implementation it can handle routes and status code.

# Setup
Setup tutorial on [youtube](https://youtu.be/MQG5TrDgdX8)

## Build the server
```
make
```

## .config for server configurations
The website which is going to be hosted should conatin .config file. [Example](https://github.com/AtmegaBuzz/webserver/tree/master/website)

```
/*
server_ip = 192.168.0.4;
port = 80;
routes:
{route1,}
{route2,}
*/

routes: // example
{/,index.html};
{/about,about.html};
{/contact,contact.html};
```

## Host a static site
```
./webserver --host
```