Adding URLs to Mysource Matrix
I've recently been asked to build a site for a friend of mine, and what better system to build it on then Mysource Matrix?
Other then setting the site and all its elements in mysource matrix itself, there are a few fundamental tasks that are required to get a website running.
First off is to buy a domain name, and then have it pointing to the right server.
For this my friend bought a domain through MelbourneIT, however I always find they are a little over priced. I use http://www.domai.nr to find an appropriate domain name and usually buy through godaddy.com.
Once you've bought the domain name you need to update the domains name servers and create a few name server records through your DNS area.
I use Slicehost for my hosting needs, absolutely brilliant in my eyes!
So I update the nameservers on MelbourneIT to point towards
ns1.slicehost.net
ns2.slicehost.net
ns3.slicehost.net
I then visit the Slicehost DNS manager and create a new domain for the site, yoursitedomain.com. Now that has been created you need to associate some records to the domain.
There are numerous records to choose from, but to start with you should set up 3xNS records pointing towards the name servers, and 2xA records pointing yoursitedomain.com and www to the ip address of the server you are hosting with.
If that seems a little confusing, head over to the Slicehost documentation which is very clear and extremely thorough.
Now this is the bit that I wanted to write about at the beginning, adding a URL to the mysource matrix installation.
Go to the terminal window and ssh into your server.
Type cd /etc/apache2/sites-enabled/
Type sudo vi nameofyourslicehost (so in my case it was sudo vi surfthedream.com.au)
You should see something like this....
ServerName surfthedream.com.au
ServerAlias surfthedream.com.au surfthedream.net.au www.surfthedream.com.au www.surfthedream.net.au justinavery.me www.justinavery.me
You want to navigate to the ServerAlias line and press shift+a (A, which takes you to the end of the line to edit in vi).
As you can see from the example you can add multiple urls separating them with spaces.
Once you're finished adding them you should have something like.....
ServerName surfthedream.com.au
ServerAlias surfthedream.com.au surfthedream.net.au www.surfthedream.com.au www.surfthedream.net.au justinavery.me www.justinavery.me yoursitedomain.com www.yoursitedomain.com
Press <esc> to get out of the editing mode and then :wq to write then quit the file.
Next step is to restart apache, but make sure you test restart apache first to make sure nothing went wrong.
Author: Justin Avery
Tags:
