This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder