2 Replies Latest reply: Oct 25, 2012 2:48 PM by hvtl
hoefi_eu Level 1 Level 1 (0 points)

Hello Community

 

I want to create a website (www.domain.tld) and another website (blog.domain.tld). So I registered the domain and configured it to my mac server. When I try to access www.domain.tld then it is working perfect. When I try to access blog.domain.tld or want to resolve it by dns tool then it tell me that this is not working.

 

I configured my DNS as follow in server.app

 

Primary zone: domain.tld

blog.domain.tld (Computer)

ftp.domain.tld (Alias)

domain.tld (Mail Exchange)

domain.tld (Name Server)

 

and my Website configuration:

 

1st:

www.domain.tld

IP Adress: 12.34.56.78 Port: 80

no SSL certificate

additional domain: domain.tld

 

2nd:

blog.domain.tld

IP Address: 12.34.56.78 Port 80

no SSL certificate

no additional domain

 

But still no access possible.

 

Any tips for me?

 

Thanks!

Dominique


virtual Mac OS X Server, OS X Mountain Lion (10.8.2)
  • stephen.willis.smith Level 1 Level 1 (65 points)

    Who ever you registered the domain name with needs to point blog.domain.tld to your IP address.  I use ipage for my domains.  You can call or chat with them and ask them to point it for you.  usually takes 12-24 to take effect once they make the change.

  • hvtl Level 1 Level 1 (0 points)

    Hi,

    I just bought MACOSX server 10.8 to centralise all my local domains in a real server.

    Previsously I used to use hosts files and configured httpd files

     

     

    Like that

    127.0.0.1       website1.local

    127.0.0.1       website2.local

    127.0.0.1       website3.local

     

     

    and in Vhost

    <VirtualHost *:80>

        DocumentRoot "/Users/xxx/Sites/website1"

        ServerName website1.local

    <Directory "/Users/xxx/Sites/website1">

        Options Indexes FollowSymLinks

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

    </VirtualHost>

    <VirtualHost *:80>

        DocumentRoot "/Users/xxx/Sites/website2"

        ServerName website1.local

    <Directory "/Users/xxx/Sites/website2">

        Options Indexes FollowSymLinks

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

    </VirtualHost>

     

     

    Problem I need to acces on my local website on some computer. So I decided to use the DNS functions incudes into Macosx server.

     

     

    But I can only declare 1 main domain and all vhost I want to add are not recognized when i add a new website from the interface.

     

     

    Do you have a method to activate some multiples hosts ? Maybe a tutorial ?