-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.conf
More file actions
42 lines (36 loc) · 683 Bytes
/
test.conf
File metadata and controls
42 lines (36 loc) · 683 Bytes
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
server {#serv11111
listen 8080
listen 8081
listen 8082
root /server/data/
server_name localhost
# autoindex true
index_page index.html
client_body_buffer_size 65536
client_max_body_size 15728640
cgi_bin /server/data/cgi-bin/
cgi .php ./server/data/cgi-bin/php-cgi
cgi .bla ./42tester/cgi_tester
cgi .py /usr/bin/python
cgi .pl /usr/bin/perl
location / {
root /server/data/
method GET
autoindex true;
}
location /images/ {
root /server/data/images/
method GET
autoindex true
}
location *.ico {
root /server/data/images/
method GET
autoindex true
}
location /uploads/ {
root /server/data/uploads/
method POST GET
autoindex true
}
}