Skip to content

Instantly share code, notes, and snippets.

@harunyardimci
Created July 1, 2014 21:10
Show Gist options
  • Select an option

  • Save harunyardimci/30a4e7f4d0436f6a2f46 to your computer and use it in GitHub Desktop.

Select an option

Save harunyardimci/30a4e7f4d0436f6a2f46 to your computer and use it in GitHub Desktop.
Dynamic apache virtual host configuration
<VirtualHost *:80>
ServerName *.*.*.local.dev
SetEnv APPLICATION_ENV "development"
VirtualDocumentRoot /var/www/some_path/%1/%2/public/%3
<Directory "/var/www/developers_repo_path/*/*">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment