Hi, friends:
I want to have, for instance, as a real Domain, and as just an alias, so that when browsing to any of them it can bring the same homepage, that is, abc.com.br. In this case, xyz.com.br wouldn´t have a home or web directory, nor email, nor ftp.
I configured the file systems as below (I changed the true domain names, this is just an example), but it is not working. abc is reachable, but xyz is not. Maybe something is wrong or I forgot something. Please, review the files and tell me this. Thanks a lot.
Mario./
/var/named/abc.com.br file:
---------------------------
$TTL 48200
@ IN SOA ns.multisitesdominios.com.br. webmaster.multisitesdominios.com.br. (
2001060303 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; default_ttl
)
IN NS ns.multisitesdominios.com.br.
IN NS ns2.multisitesdominios.com.br.
IN MX 10 mail
IN A 200.201.129.12
;
www IN A 200.201.129.12
ftp IN A 200.201.126.12
mail IN A 200.201.129.12
smtp IN A 200.201.129.12
pop IN A 200.201.129.12
/var/named/xyz.com.br file:
---------------------------
$TTL 48200
@ IN SOA ns.multisitesdominios.com.br. webmaster.multisitesdominios.com.br. (
2001060403 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; default_ttl
)
IN NS ns.multisitesdominios.com.br.
IN NS ns2.multisitesdominios.com.br.
IN A 200.201.129.12
;
/etc/named.conf entries:
------------------------
zone "abc.com.br"{
type master;
file "abc.com.br";
};
zone "xyz.com.br"{
type master;
file "xyz.com.br";
};
Obs: The secondary /etc/named.conf file is also accordingly configured.
/usr/local/apache/conf/httpd.conf file:
---------------------------------------
<virtualhost 200.201.129.12>
ServerAdmin webmaster@multisitesdominios.com.br
ServerName ServerAlias abc.com.br
ServerAlias DocumentRoot /home/abc/www
ScriptAlias /cgi-bin/ /home/abc/ErrorLog logs/abc-error-log
TransferLog logs/abc-access-log
</virtualhost>
As xyz is just a serveralias for abc, we didn´t create a xyz <virtualhost> block for it.
Thanks.
I want to have, for instance, as a real Domain, and as just an alias, so that when browsing to any of them it can bring the same homepage, that is, abc.com.br. In this case, xyz.com.br wouldn´t have a home or web directory, nor email, nor ftp.
I configured the file systems as below (I changed the true domain names, this is just an example), but it is not working. abc is reachable, but xyz is not. Maybe something is wrong or I forgot something. Please, review the files and tell me this. Thanks a lot.
Mario./
/var/named/abc.com.br file:
---------------------------
$TTL 48200
@ IN SOA ns.multisitesdominios.com.br. webmaster.multisitesdominios.com.br. (
2001060303 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; default_ttl
)
IN NS ns.multisitesdominios.com.br.
IN NS ns2.multisitesdominios.com.br.
IN MX 10 mail
IN A 200.201.129.12
;
www IN A 200.201.129.12
ftp IN A 200.201.126.12
mail IN A 200.201.129.12
smtp IN A 200.201.129.12
pop IN A 200.201.129.12
/var/named/xyz.com.br file:
---------------------------
$TTL 48200
@ IN SOA ns.multisitesdominios.com.br. webmaster.multisitesdominios.com.br. (
2001060403 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; default_ttl
)
IN NS ns.multisitesdominios.com.br.
IN NS ns2.multisitesdominios.com.br.
IN A 200.201.129.12
;
/etc/named.conf entries:
------------------------
zone "abc.com.br"{
type master;
file "abc.com.br";
};
zone "xyz.com.br"{
type master;
file "xyz.com.br";
};
Obs: The secondary /etc/named.conf file is also accordingly configured.
/usr/local/apache/conf/httpd.conf file:
---------------------------------------
<virtualhost 200.201.129.12>
ServerAdmin webmaster@multisitesdominios.com.br
ServerName ServerAlias abc.com.br
ServerAlias DocumentRoot /home/abc/www
ScriptAlias /cgi-bin/ /home/abc/ErrorLog logs/abc-error-log
TransferLog logs/abc-access-log
</virtualhost>
As xyz is just a serveralias for abc, we didn´t create a xyz <virtualhost> block for it.
Thanks.