Installing Aegir: Need DNS and Virtual Host configuration help

Events happening in the community are now at Drupal community events on www.drupal.org.
entrigan's picture

Hi everyone,

I am very excited about aegir, but very fresh to LAMP etc. I have a fresh Ubuntu 10.04 downgraded to PHP 5.2 and installed Aegir Alpha8 cleanly (on linode) (thanks to the excellent install.txt and mig5's screencast).

Now that this is done, I am not sure how to set up my DNS or virtualhosts to point to the aegir site. I added an A entry in the DNS manager for aegir.mydomain.com, however going to aegir.mydomain.com points to the same location as mydomain.com.

Forgive my ignorance: Do I need wildcard DNS? Do I need a separate entry in /etc/apache2/sites-available?

Comments

Some Progress: I created a

entrigan's picture

Some Progress:

I created a vhost entry at /etc/apache2/sites-available and then ran a2ensite aegir.mydomain.com
Doing so fixed the problem, but I am still a little confused.

Now this is my continuation question: If I set up wildcard dns, how do I make a vhost entry that will route the domain request to different aegir managed sites?

What version of Aegir did you

mig5's picture

What version of Aegir did you install?

I think something has already gone wrong if you had to manually create a vhost for the main aegir site, as this is not required in 0.4 releases of aegir. Did your install process include runnig the install.sh script?

Re: your second question, Aegir manages all apache configs for the sites it manages. So you don't need to manually create any - when you add a site in aegir, the install process will create the vhost and restart apache automatically.

I installed .4-Alpha8. So I

entrigan's picture

I installed .4-Alpha8. So I was following your video and I ran install.sh, and everything looked good, including a file /var/aegir/hostmaster-0.4-alpha8/aegir.brainowl.com_80

The contents of aegir.brainowl.com_80 contain everything that I think belongs (virtual host tag, SetEnv entries ServerName entry etc.)

However when I go to /etc/apache2/sites-enabled there is no aegir.brainowl.com_80 link, nor is it available in /etc/apache2/sites-available (so a2ensite does not work).

Should I try again from scratch?

So like you said something

entrigan's picture

So like you said something was wrong, while the site worked at first I eventually started getting an error:

The database type '' is unsupported. Please use either 'mysql' or 'mysqli' for MySQL, or 'pgsql' for PostgreSQL databases..

Which is probably the same issue as posted over here

Update: So I believe the

entrigan's picture

So I believe the problem is with my DNS configuration (makes sense since this is the only thing not covered in the Aegir INSTALL.txt).

I added a wildcard A/AAAA entry in my DNS configuration for my domain. After waiting for the information to propogate, now everything resolves to the aegir install. That includes my IP, mydomain.com, and *.mydomain.com.

Will have to read up on DNS and then report back :)

Update: Ok so obviously I do not know what I am doing (yet), but I changed my DNS A entry from * to *.mydomain.com and now the sites I have in sites-enabled are resolving correctly again. Entering my IP directly is still going to aegir, but I guess that is not so bad.

IN Linode * does work

mindtrades's picture

IN Linode * does work

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: