Skip to content

Commit 25d5891

Browse files
author
Yieen
committed
Merge branch 'main' of github.com:PythonGermany/42_webserv
2 parents 95c644c + e792f63 commit 25d5891

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,19 @@ This project is a basic HTTP server written in C++98.
3434

3535
## Compilation
3636

37+
### Native
38+
3739
```
3840
make [performance|debug|fsanitize]
3941
```
4042

43+
### Docker
44+
45+
This will create a mariadb docker container for the database another container which will setup wordpress, compile webserv execute it. To populate the container env credentials you can make a copy of the [.env-example](docker/.env-example) file and rename it to `.env`, make sure to change the default values according to your needs.
46+
```
47+
make -C docker up
48+
```
49+
4150
# Usage
4251
```
4352
./webserv [configuration_file] [ [-i|-h|-v|-c|-t] | [-o|-l|-a|-e ARGUMENT] ...]
@@ -70,7 +79,7 @@ You can look at the parsing debug output by setting the flag `o` to `on` and the
7079

7180
# Configuration
7281

73-
The configuration file is used to define the configuration of the webserver. It is composed of directives. A directive is composed of a name arguments and a value. The value can be a string or a block. A block is a list of directives.
82+
The configuration file is used to define the configuration of the webserver. It is composed of directives. A directive is composed of a name arguments and a value. The value can be a string or a block. A block is a list of directives. The file [webserv.conf](conf/webserv.conf) demonstrates the default configuration of the webserv executable.
7483

7584
| Config type | Options |
7685
| --- | --- |
@@ -110,7 +119,7 @@ types {
110119
type MIME_TYPE EXTENSION [EXTENSION ...];
111120
}
112121
```
113-
Types context. It contains the mime types of the server.
122+
Types context. It contains the mime types of the server. The file [mime.types](conf/mime.types) provides an extensive default configuration for this context.
114123
**Allowed tokens:** [type](#type)
115124

116125
### Server

include/poll/Poll.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class Poll {
4848
void remove(size_t pos);
4949
void release(CallbackPointer const *callback, struct pollfd const *pollfd,
5050
size_t size);
51-
void handleAddingAttempts();
51+
void handleAddingAttempts(); // TODO: Still needed, since it doesnt seem to
52+
// be implemented?
5253
};
5354

5455
#endif // POLL_HPP

websites/config_test/lol😀.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<body>
1010
<a href="/">Home</a><br>
11-
<a href="/index">Multivalue index test</a><br>
11+
<a href="/index/">Multivalue index test</a><br>
1212
<a href="putRequest.html">PUT Request Example</a><br>
1313
<a href="deleteRequest.html">DELETE Request Example</a><br>
1414
<a href="/uploaded/">Uploaded files and autoindex once files are uploaded</a><br>

0 commit comments

Comments
 (0)