Wildcards and A record, please, help!

Subscribe to Wildcards and A record, please, help! 3 post(s), 2 voice(s)

 
Avatar studentrm 2 post(s)

Hi, everybody

We jsut switched to brightbox and I need to configure subdomains working properly.
We had A record in manage panel configured in slicehost.
But how should I do it here?
Apache configured to use wildcards i.e. ServerAlias
We don’t use brightbox gem.

Any help very welcome!!!

Sincerely,
Igor

 
Avatar Rahoul Baruah Administator 31 post(s)

Hi,

All you need to do is point your A Record at your Brightbox’s IP address (which I can see you’ve already done).

Then configure Apache accordingly:

  • if you want a single app to respond to all subdomains, then configure the application’s vhost to respond to *.mydomain.com
  • if you want different apps to respond to different subdomains, then set up a vhost per application – on subdomain1.mydomain.com, subdomain2.mydomain.com etc

If you are using the Brightbox gem you can use the :domain and :domain_aliases properties to set these up. You will then need to do a `cap deploy:initial` (which makes the gem write an Apache vhost config for your app) and then you will need to reload Apache to make it pick up the new settings.

Hope that helps,

Rahoul.

 
Avatar studentrm 2 post(s)

thanks a lot,
we did the same and everything works now

Signup or login to contribute