Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created May 19, 2010 23:16
Show Gist options
  • Save ryanflorence/406983 to your computer and use it in GitHub Desktop.
Save ryanflorence/406983 to your computer and use it in GitHub Desktop.
Alternate vhost textmate snippet
# domain: ${1:domain.com}
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin ${2:webmaster}@${1}
ServerName ${1}
ServerAlias ${3:www.${1}}
# Index file and Document Root (where the public files are located)
DirectoryIndex ${4:index.html}
DocumentRoot ${5:/home/${6:${2}}/public_html/${1}/${7:public}}
# Custom log file locations
LogLevel warn
ErrorLog ${8:/home/${6:${2}}/public_html/${1}/log/error.log}
CustomLog ${9:/home/${6:${2}}/public_html/${1}/log/access.log co$}
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment