jrtboht
August 25th, 2010, 12:40 PM
I currently am running 10.04.1 and have successfully setup my home web server to run a single website. My current settings are:
-I have registered the domain name annarrankings.com through godaddy
-A record is - host = @ and points to = 71.114.220.3
-CName is - host = www and points to = @
-on my server I have the site running in /var/www
---------------------------------------------------------------------------------------
I've done some research and found that to run multiple websites I need to setup VirtualHost.
-So I created a folder /var/www/annarrankings.com and moved my site to that folder
-Edited Apache2.conf to add the following line
http://lh3.ggpht.com/_aEwLsvC9j1k/THT5kQb5RJI/AAAAAAAAAiQ/cqHinFcRRzI/s800/img1.jpg
-I then went to /etc/apache2/sites-enabled and copied the default file to a new file called annarrankings.com. Here's the annarrankings.com file after I edited it
http://lh6.ggpht.com/_aEwLsvC9j1k/THT_g2MekHI/AAAAAAAAAis/LbzQDfd3NbI/s800/img2.jpg
-I then created a link in /etc/apache2/sites-enabled to the annarrankings.com file in /etc/apache2/sites-available
-Next I editied /etc/hosts
http://lh3.ggpht.com/_aEwLsvC9j1k/THT99sGExGI/AAAAAAAAAig/WF85ddRJZ68/s800/img3.jpg
-when i went to enable the site using a2ensite annarrankings.com I got the following
***************************************
jeremy@webserver: /etc/apache2/sites-available$ a2ensite annarrankings.com
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Failling back to the standard locale ("C").
Site annarrankings.com already enabled
***************************************
I figured this was ok since I had already created a symbolic link earlier (a result of trying to following multiple tutorials and youtube videos at once) so I reloaded apache2. I created an index.html file in /var/www/ just for testing purposes and when I load www.annarrankings.com I get the file located in /var/www/ instead of the website located in /var/www/annarrankings.com Do I need to change my A record or CName in godaddy or did I just do this completely wrong?
-I have registered the domain name annarrankings.com through godaddy
-A record is - host = @ and points to = 71.114.220.3
-CName is - host = www and points to = @
-on my server I have the site running in /var/www
---------------------------------------------------------------------------------------
I've done some research and found that to run multiple websites I need to setup VirtualHost.
-So I created a folder /var/www/annarrankings.com and moved my site to that folder
-Edited Apache2.conf to add the following line
http://lh3.ggpht.com/_aEwLsvC9j1k/THT5kQb5RJI/AAAAAAAAAiQ/cqHinFcRRzI/s800/img1.jpg
-I then went to /etc/apache2/sites-enabled and copied the default file to a new file called annarrankings.com. Here's the annarrankings.com file after I edited it
http://lh6.ggpht.com/_aEwLsvC9j1k/THT_g2MekHI/AAAAAAAAAis/LbzQDfd3NbI/s800/img2.jpg
-I then created a link in /etc/apache2/sites-enabled to the annarrankings.com file in /etc/apache2/sites-available
-Next I editied /etc/hosts
http://lh3.ggpht.com/_aEwLsvC9j1k/THT99sGExGI/AAAAAAAAAig/WF85ddRJZ68/s800/img3.jpg
-when i went to enable the site using a2ensite annarrankings.com I got the following
***************************************
jeremy@webserver: /etc/apache2/sites-available$ a2ensite annarrankings.com
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Failling back to the standard locale ("C").
Site annarrankings.com already enabled
***************************************
I figured this was ok since I had already created a symbolic link earlier (a result of trying to following multiple tutorials and youtube videos at once) so I reloaded apache2. I created an index.html file in /var/www/ just for testing purposes and when I load www.annarrankings.com I get the file located in /var/www/ instead of the website located in /var/www/annarrankings.com Do I need to change my A record or CName in godaddy or did I just do this completely wrong?