Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Configuration steps and setup scripts for different machine configurations I use.
Shell ApacheConf JavaScript HTML
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Configuration steps and setup scripts for different vm configurations I use.

Configuring a Web Server

These instructions assume you have installed VirtualBox and downloaded Ubuntu Server 12.04 LTS 64 bit ISO

Setting Up the VirtualBox

  • Launch VirtualBox
  • Click New
  • Click Continue
  • Name: Webserver
  • OS Type: Linux
  • Version: Ubuntu (64bit)
  • Click Next
  • Base Memory: 256MB
  • Click Next
  • Check Start-up Disk
  • Select “Create new hard disk”
  • Click Next
  • Select “VDI (VirtualBox Disk Image)”
  • Click Next
  • Select Fixed size
  • Click Next
  • Location: Webserver
  • Size: 10GB
  • Click Next
  • Click Create
  • Click Create
  • Click Start
  • Click Next
  • Click Folder button
  • Select the iso file you downloaded above
  • Click Open
  • Click Next
  • Click Start

Installing Ubuntu Server on VirtualBox

  • Select English
  • Select “Install Ubuntu Server”
  • Select English
  • Select United States
  • For “Detect keyboard layout?” choose No
  • Select “English (US)”
  • Select “English (US)”
  • Enter webserver for hostname
  • Enter “Web Administrator” for Full name
  • Enter webadmin for username
  • Enter your password twice
  • For “Encrypt your home directory?” choose No
  • Answer if time zone is correct
  • For “Partitioning method” choose “Guided - use entire disk and set up LVM”
  • Select the only disk partition available
  • For “Write the changes to disks and configure LVM?” choose Yes
  • Press Enter to accept the max amount of volume group to use for guided partitioning.
  • For “Write the changes to disks?” choose Yes
  • Press Enter to leave HTTP proxy blank
  • Select “No Automatic updates”
  • Select “OpenSSH server” and press Enter
  • For “Install the GRUB boot loader to the master boot record?” choose Yes
  • Select Continue

Boot Ubuntu Server

  • Login with username and password above
  • Run the following commands
curl -O
chmod +x
sudo ./
  • Edit /etc/nginx/sites-available/webserver.local
    • By default nginx serves pages to http://webserver/ and node server pages to http://nodeserver/
    • In production you probably want nginx to handle and node to handle
  • Edit /etc/monit/monitrc
    • By default monit checks your nodeserver after 2 minutes and then every minute there after.
  • Edit /etc/monit/services/nodeserver
    • By default monit checks / of but it could check any path. say one that sent some interesting stats to the log file.
  • If you are deploying to virtualbox, change the network connection from NAT to bridged
  • Reboot using the following command or something similar
sudo reboot
Something went wrong with that request. Please try again.