Skip to content

Instantly share code, notes, and snippets.

View jess's full-sized avatar

Jess Brown jess

View GitHub Profile
# This is a script I use to create a virtual host on my development Ubuntu machine
class VH
def self.create(domain, location)
dev = domain.split(".").insert(1, "dev").join(".")
if location.nil?
doc_root = "DocumentRoot /home/jess/virtual/#{domain}"
else
doc_root = "DocumentRoot #{location}"
end