Adding a new site and feeling good about it

August 21, 2010 3:17 pm Published by Leave your thoughts

Say you have a running Linux box on Rackspace and wish to add a new web site to its virtual servers. Don’t let any *nix ninja tell you it’s simple/quick/fun. Here’s why:

1. Register a domain ( and point its DNS to DNS1.STABLETRANSIT.COM, DNS2.STABLETRANSIT.COM

2. SSH your Rackspace site and create a new VirtualHost:

mkdir /home/user/

vi /home/user/

Welcome to!

vi /etc/apache2/sites-available/

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /home/user/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128


/etc/init.d/apache2 reload

3. Login at

Hosting – Cloud Servers – myserver – DNS – Add – – Add – Type A,, my IP, 300

now we wait…

Categorised in:

This post was written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *