Опубликовано 29/06/2014
Добавление инф. о файлах сайта и его включение в apache2 (отключение командой a2dissite)
root@happyblitz:/etc/apache2/sites-available# ls
bathhouse default default-ssl notes7 pokrovka7
root@happyblitz:/etc/apache2/sites-available# a2ensite bathhouse
Enabling site bathhouse.
To activate the new configuration, you need to run:
service apache2 reload
root@happyblitz:/etc/apache2/sites-available# service apache2 reload
Добавляем инф. о домене в bind.
Для этого увеличим счетчик serial на 1 и добавим строчку:
bathhouse IN CNAME happyblitz.ru.
root@happyblitz:~# cat /etc/bind/happyblitz.ru
$TTL 150
$ORIGIN happyblitz.ru.
@ 150 IN SOA ns.happyblitz.ru. admin@happyblitz.ru (
2014041502 ; serial
150 ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns52.ruweb.net.
IN NS ns51.ruweb.net.
IN A 185.11.246.126
pokrovka7 IN CNAME happyblitz.ru.
pokrovka IN CNAME happyblitz.ru.
root@happyblitz:~# vim /etc/bind/happyblitz.ru
root@happyblitz:/home/oleg# cat /etc/bind/happyblitz.ru
$TTL 150
$ORIGIN happyblitz.ru.
@ 150 IN SOA ns.happyblitz.ru. admin@happyblitz.ru (
2014041503 ; serial
150 ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns52.ruweb.net.
IN NS ns51.ruweb.net.
IN A 185.11.246.126
pokrovka7 IN CNAME happyblitz.ru.
pokrovka IN CNAME happyblitz.ru.
bathhouse IN CNAME happyblitz.ru.
root@happyblitz:~# /etc/init.d/bind9 reload
Добавить комментарий