SubDomain creation issue.Ubuntu 12.04 Apache 2.22 Webmin

Posted by anarchos78 on Server Fault See other posts from Server Fault or by anarchos78
Published on 2012-10-19T08:06:23Z Indexed on 2012/10/19 11:08 UTC
Read the original article Hit count: 271

Filed under:
|
|

I have a technical question concerning subdomains. My installation is UBUNTU 12.04 and WEBMIN for administration (using Apache web server). I am trying to create a subdomain to one IP (the domain is www.ithemis.gr and I want to create test.ithemis.gr and/or test1.ithemis.gr) with no success. I think I've tried the right way to set subdomains. The address does not resolving (I have already created DNS records via BIND). Do you have any suggestions? I am very new in server administration. Any help will be greatly appreciated!

Apache configuration:

In /etc/apache2/sites-available:

Conf file:www.ithemis.gr.conf (main website)

<VirtualHost 184.171.255.110:80>
  DocumentRoot /home/ithemis.gr
  ServerName www.ithemis.gr
  <Directory "/home/ithemis.gr">
    allow from all
    #Options +Indexes
    Options +Includes -Indexes
  </Directory>
</VirtualHost>

Conf file:www.test.ithemis.gr.conf (subdomain website):

<VirtualHost *:80>
DocumentRoot /home/test.ithemis.gr
ServerName test.ithemis.gr
<Directory "/home/test.ithemis.gr">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

My DNS records:

Master Zone: ithemis.gr

Name                  Type    TTL      Values
ithemis.gr.           NS      Default      ns1.themis.gr.
ithemis.gr.           A       Default      184.171.255.110
ns1.ithemis.gr.       A       Default      184.171.255.110
ns2.ithemis.gr.       A       Default      184.171.255.110
mail.ithemis.gr.      A       Default      184.171.255.110
www.ithemis.gr.       CNAME   Default      ithemis.gr.
ithemis.gr.           MX      Default      5 mail.ithemis.gr.
www.test.ithemis.gr.  CNAME   Default      ithemis.gr.
test.ithemis.gr.      CNAME   Default      ithemis.gr.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about bind