-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNginxConf1
More file actions
60 lines (30 loc) · 1.02 KB
/
NginxConf1
File metadata and controls
60 lines (30 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
[root@localhost ~]# docker exec -it 8e1ac6ddd297 /bin/bash
root@8e1ac6ddd297:/# cat sites-available/myfirstpage.com.conf
server
{
listen 80;
server_name myfirstpage.com www.myfirstpage.com;
location /{
root /usr/share/nginx/myfirstpage.com/public_html;
index index.html index.htm;
}
}
root@8e1ac6ddd297:/#
root@8e1ac6ddd297:/# cat sites-available/mysecondpage.com.conf
server {
listen 80;
server_name mysecondpage.com www.mysecondpage.com;
location /{
root /usr/share/nginx/mysecondpage.com/public_html;
index index.html index.htm;
}
}
root@8e1ac6ddd297:/# cat sites-available/mythirdpage.com.conf
server {
listen 80;
server_name mythirdpage.com www.mythirdpage.com;
location /{
root /usr/share/nginx/mythirdpage.com/public_html;
index index.html index.htm;
}
}