forked from ayoubelhioui/WebServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.conf
executable file
·98 lines (93 loc) · 2.59 KB
/
file.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
server {
listen 10.11.2.5:8080
max_client_body_size 1000000
error_page 400 ./public/htmlErrorPages/error400.html
error_page 404 ./public/htmlErrorPages/error404.html
server_name example localhost
location /ayoubayoub {
allow_methods POST GET DELETE
index index.html index.php aa.txt
root ./root/others
upload_pass ayoub
}
location /ayoub/ayoub.txt {
allow_methods POST GET DELETE
index index.html index.php aa.txt
autoindex on
cgi_pass py /usr/local/bin/python3
upload_pass testing
cgi_pass php ./cgi-bin/php-cgi
root .root/others
}
location / {
allow_methods GET POST DELETE
root Implementations
autoindex on
upload_pass uploads
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
}
location /htmlErrorPages {
allow_methods GET POST DELETE
root /public/htmlErrorPages
autoindex on
upload_pass uploads
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
}
location /a/b/ {
allow_methods GET DELETE POST
index aaa.php bbb.php e.php
upload_pass uuuu
root ayoubayoub
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
}
}
server {
listen 10.11.2.5:6060
max_client_body_size 100000000
error_page 400 ./public/htmlErrorPages/error400.html
error_page 404 ./public/htmlErrorPages/error404.html
server_name example localhost
location /ayoubayoub {
allow_methods POST GET DELETE
index index.html index.php aa.txt
root ./root/others
upload_pass ayoub
}
location /ayoub/ayoub.txt {
allow_methods POST GET DELETE
index index.html index.php aa.txt
autoindex on
cgi_pass py /usr/local/bin/python3
upload_pass testing
cgi_pass php ./cgi-bin/php-cgi
root .root/others
}
location / {
allow_methods GET POST DELETE
root public
autoindex off
upload_pass uploads
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
}
location /htmlErrorPages {
allow_methods GET POST DELETE
root /public/htmlErrorPages
autoindex on
upload_pass uploads
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
}
location /a/b/ {
allow_methods GET DELETE POST
index aaa.php bbb.php e.php
upload_pass uuuu
root ayoubayoub
cgi_pass php ./CGIS/php-cgi
cgi_pass pl /usr/bin/perl
return https://chat.openai.com/auth/login
}
}