Apache web server set up

Posted on 2005-12-12 at 08:01

Setting up Apache2 Web Server in Ubuntu Linux is pretty easy stuff---almost not worth writing down---but here goes:

  1. I use the apt-get command to install Apache2
    apt-get install apache2
  2. I add a .conf file to /etc/apache2/sites-enabled for each domain
    touch www.kungfugamers.com.conf
  3. I edit the .conf files to look like this for each domain (adjusting for the web root I chose and the name of the domain itself.
    <VirtualHost *>
    DocumentRoot "/var/www/kfg"
    ServerAlias www.kungfugamers.com kungfugamers.com
    ServerName www.kungfugamers.com
    </VirtualHost>
  4. I restart apache2 so it grabs the new conf settings
    /etc/init.d/apache2 restart
Suddenly, I have an operational web server! Don't beleive it's that easy? Well your browser beleives it, cuz that's the server from which you just got served this web page.

Make A Comment