You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
816 B
39 lines
816 B
{
|
|
"root_folder": "./www",
|
|
"allowed_methods": ["GET", "POST", "PUT", "DELETE"],
|
|
"servers": [
|
|
{
|
|
"server_name": "localhost",
|
|
"listens": ["localhost:8080"],
|
|
"root": "public/",
|
|
"return": "301 https://$host$uri"
|
|
},
|
|
{
|
|
"server_name": "webserv.doc",
|
|
"listens": ["localhost"],
|
|
"root": "html/",
|
|
"indexs": ["index.html"]
|
|
},
|
|
{
|
|
"server_name": "narnaud.42.fr",
|
|
"listens": ["192.168.62.61:8080", "localhost", "555"],
|
|
"root": "public/html/",
|
|
"indexs": ["basique.html"],
|
|
"cgi": {
|
|
".php": "/usr/bin/php",
|
|
".py": "/usr/bin/python
|
|
},
|
|
"client_max_body_size": 10000,
|
|
"locations": {
|
|
"/docs/": {
|
|
"root": "public/resources/",
|
|
"autoindex": true
|
|
},
|
|
"/img/": {
|
|
"root": "public/resources/",
|
|
"autoindex": true
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|