Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created August 2, 2013 22:05
Show Gist options
  • Save viniciusss/6143838 to your computer and use it in GitHub Desktop.
Save viniciusss/6143838 to your computer and use it in GitHub Desktop.
Configuração do apache para Sub domínios dinâmicos.
UseCanonicalName Off
VirtualDocumentRoot /vagrant/%2/%1/
# Explicando melhor
# O apache vai receber uma url dessa forma aqui http://app.empresa.com.br/
# E ele vai procurar pela pasta /vagrant/empresa/app/
# Outro exemplo http://gist.github.com/
# Ele vai procurar por /vagrant/gitgub/gist/
# Tem que habilitar o modulo vhost_alias.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment