-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.conf
99 lines (80 loc) · 1.56 KB
/
default.conf
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
worker_processes 5; ## Default: 1
events {
worker_connections 4096; ## Default: 1024
}
http {
server { # php/fastcgi
listen 80;
server_name localhost;
root ./var/www/YoupiBanane;
error_page 404 405 500 /nop/youpi.bad_extension;
location / {
autoindex on;
error_page 404 405 /nop/youpi.bad_extension;
limit_except GET {
deny all;
}
}
location /put_test {
upload_store upload_put;
}
location /post_body {
client_max_body_size 100;
upload_store upload_post;
}
location /.bla {
cgi_pass /cgi_tester;
}
location /.py {
cgi_pass /CGI_2.py;
limit_except GET {
deny all;
}
}
location /.php {
cgi_pass /CGI_1.php;
limit_except POST {
deny all;
}
}
location /directory {
index youpi.bad_extension;
error_page 404 405 /nop/youpi.bad_extension;
}
}
server {
listen 8080;
server_name domain2.com localhost;
root ./var/www;
error_page 404 502 503 504 /errorPages/404.html;
location / {
autoindex on;
}
location /dir {
root ./var/www;
}
location /dir/ {
root ./var/www;
}
location /404.html {
root ./var/www/errorPages;
}
location /fileupload {
root ./var/www;
upload_store upload;
}
location /cgi {
cgi_pass /cgi_tester;
}
location /delete {
root ./var/www/upload;
}
location /redirecturl {
limit_except GET POST HEAD {
deny all;
}
autoindex off;
return 302 https://google.com;
}
}
}