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
- Host: GitHub
- URL: https://github.com/atmegabuzz/weebserver
- Owner: AtmegaBuzz
- License: gpl-3.0
- Created: 2022-09-19T18:21:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:46:09.000Z (over 3 years ago)
- Last Synced: 2025-04-14T17:04:55.307Z (12 months ago)
- Topics: cpp, hacktoberfest, hacktoberfest2022, sockets, webserver
- Language: C++
- Homepage:
- Size: 58.6 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```