forked from smkatash/42_webserv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
executable file
·47 lines (36 loc) · 1.14 KB
/
Copy pathREADME
File metadata and controls
executable file
·47 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
W E B S E R V
(c) 2023- by smkatash, jgmaalouf, frame-src / KJF inc.
https://github.com/smkatash/42_webserv
Licensed under WTFPL (see LICENSE file)
*NOTE: this is a 42 Project made by three students at 42 Heilbronn*
-------------------------------------------------------------------------------------------------------
INTRO:
-----------
Implementation of a server in C++
The focus of this project is to implement an HTTP/1.1 compliant server according to the RFC[1].
The server is capable of handling multiple connections through kernel event notification mechanism.
Supported methods:
- GET
- POST
- DELETE
Supported CGI scripts:
- python
- perl
- php
HOW TO USE:
-----------
To compile server run:
```
$ cd 42_webserv && make
```
If you use Linux, this will not work because we are using kqueue()[2];
To run server:
Run the executable and press enter or:
```
$ ./webserv [optional config.conf]
```
If no config file is specified, a default one is provided in the config directory.
RESOURCES:
-----------
[1] https://datatracker.ietf.org/doc/html/rfc2616
[2] https://habr.com/en/articles/600123/