Apache Server Setting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
vi /etc/httpd/conf/httpd.conf
NameVirtualHost *:80 -> 주석 해제
<VirtualHost *:80>
ServerName www.daum.net
DocumentRoot "/var/www/daum"
<Directory "/var/www/daum">
Order allow,deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.doyolabs.com
DocumentRoot "/var/www/doyolabs"
<Directory "/var/www/doyolabs">
Order allow,deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
|
DNS Server Setting
1
2
3
4
5
6
7
8
9
10
11
|
zone "daum.net" IN {
type master;
file "daum.net.zone";
}
zone "doyolabs.com" IN {
type master;
file "doyolabs.com.zone';
}
|
DNS Server Zone File1 Setting
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
|
$TTL 1D
@ IN SOA ns1.daum.net. admin.daum.net. (
2019050901
1D
1H
1W
3H
)
@ IN NS ns1.daum.net.
ns1 IN A 113.61.107.5
www IN CNAME web1.daum.net.
web1 IN A 113.61.107.10
ftp IN A 113.61.107.20
|
DNS Server Zone File2 Setting
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
|
$TTL 1D
2019050902 ==> 다르게 설정
1D
1H
1W
3H
)
@ IN NS ns1.doyolabs.com.
ns1 IN A 113.61.107.5
www IN CNAME web1.doyolabs.com.
web1 IN A 113.61.107.10
ftp IN A 113.61.107.20
|
'Server' 카테고리의 다른 글
CentOS 8.0.1905 Install (0) | 2019.10.04 |
---|---|
DNS - Slave Server (0) | 2019.05.16 |
FTP Server install - CentOS6.10 (0) | 2019.05.08 |
Apache httpd server install - CentOS6.10 (0) | 2019.05.07 |