-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyhttps.conf
More file actions
59 lines (49 loc) · 1.02 KB
/
myhttps.conf
File metadata and controls
59 lines (49 loc) · 1.02 KB
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
##LOG为日志文件路径,CWD为工作路径,CERT为cert.pem的路径,KEY为key.pem的路径
PATH{
LOG:/home/qiutian/myhttps/log.txt
CWD:/home/qiutian/myhttps/www
CERT:/home/qiutian/myhttps/cert.pem
KEY:/home/qiutian/myhttps/key.pem
STATUS:/home/qiutian/myhttps/status/
}
##IP,LISTEN非别为http绑定的ip地址和端口号
HTTP{
IP:127.0.0.1
LISTEN:80
}
##IP,LISTEN非别为https绑定的ip地址和端口号
HTTPS{
IP:127.0.0.1
LISTEN:443
}
##注:
R为可读,W为可写,X为可执行
内部第一部分为文件夹,第二部分为在改文件夹下可R/W/X的文件类型(以后缀为判断标准),
例如在R中 /cgi-bin:py php perl: 代表在cgi-bin目录下后缀名为py,php,perl的文件可读.
R{
/:py php perl php txt md conf html:
/cgi-bin:py php perl:
/Images:jpg ico:
/bg:jpg png:
/music:mp3 ogg:
}
W{
/::
/cgi-bin::
/Images::
/bg::
/music::
}
X{
/:php:
/cgi-bin:py php perl:
/Images::
/bg::
/music::
}
##以下可配置特殊的文件,对单独文件的权限做设定.
S{
r:/index.html
w:
x:/index3.html
}