Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create subdomain

Posted on 2014-12-01
6
Medium Priority
?
119 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
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 80

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
Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network 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 80

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

WatchGuard Case Study: NCR

With business operations for thousands of customers largely depending on the internal systems they support, NCR can’t afford to waste time or money on security products that are anything less than exceptional. That’s why they chose WatchGuard.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

885 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