Link to home
Start Free TrialLog in
Avatar of Nusrat Nuriyev
Nusrat NuriyevFlag for Azerbaijan

asked on

Create subdomain

Hello dear experts!


I have domain.az
I want to create blog.domain.az

Which steps should I perform?

1. I have created
/var/www/html/blog.domain.az
and put there index.html

2. I have added Resource Records to
/var/named/domain.az.zone
blog.domain.az. IN A <IP-ADDRESS>

3. Added to /etc/httpd/conf/httpd.conf

<Directory "/var/www/html/blog.domain.az">
        Options Indexes FollowSymlinks
        AllowOverride None
                Allow from all
        Require all granted
</Directory>



Regards,
Nusrat
4. Restarted apache and named.
Page not found.

What do I do wrong?
ASKER CERTIFIED SOLUTION
Avatar of Britt Thompson
Britt Thompson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gary
It can take up to 48 hours for the sub domain to be propogated, give it a day before trying to access it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nusrat Nuriyev

ASKER

Arnold could you please tell me what does mean

"there will be other records using the name in question."


"This could be as simple as adding a blog.domain.az.conf with the entries "
Do you mean I may not use VirtualHost tag?
I A domain is a base on which other records exist.
A sub-domain is a domain that is based on existing domain. I.e.
Domain.az is the sub-domain of the root domain az which is a sub-domain of the root (.)
Internet domain hierarchy
                                               .
   /            /             /            /       Etc.
Com      Net       Org         Az

Each of the above have similar...
              The AZ branch that you have is domain

             Az
    /
  Domain
            \
           Subdomain
     /
Another subdomain
Etc.

A hostname is often one that a record such as A, AAAA or CNAME.
A domain can have an A and an AAAA records I.e. To access a web site, you have both www.domain.az as well as domain.az that point to an address where your website is hosted.