Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create subdomain

Posted on 2014-12-01
6
Medium Priority
?
117 Views
Last Modified: 2014-12-07
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?
0
Comment
Question by:Nusrat Nuriyev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 30

Accepted Solution

by:
Britt Thompson earned 1600 total points
ID: 40474719
You may need to check your virtual hosts tags in case you have a named vhost you may have to add another and reference the directory there.

IE,

<VirtualHost *:80>
ServerName blog.domain.az
ServerAlias blog.domain.az *.blog.domain.az
DocumentRoot /var/www/html/blog.domain.az
</VirtualHost>
0
 
LVL 58

Expert Comment

by:Gary
ID: 40474934
It can take up to 48 hours for the sub domain to be propogated, give it a day before trying to access it.
0
 
LVL 79

Assisted Solution

by:arnold
arnold earned 400 total points
ID: 40475016
What you are creating is a host name not a subdomain the distinction deals with whether there will be other records using the name in question.

Renazonse pointed out what changes You need to make on the webserver configuration
This could be as simple as adding a blog.domain.az.conf with the entries and place this file in /etc/httpd/conf.d or /etc/apache2/conf.d as applicable on your system, then a simple reload of the service should be enough.
0
Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

 

Assisted Solution

by:Nusrat Nuriyev
Nusrat Nuriyev earned 0 total points
ID: 40477304
Gary, I use mxtoolbox it's a real-time tool for checking whether new RR's applied :) Because it uses only Authoritative answers :)
Actually, the mistakes were:
1. serial is not updated while dns rr changed
2. forgotten to change dns servers at domain control from web-interface.
0
 

Author Closing Comment

by:Nusrat Nuriyev
ID: 40485306
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?
0
 
LVL 79

Expert Comment

by:arnold
ID: 40485462
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.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question