Skip to content

Instantly share code, notes, and snippets.

@florentdestremau
Created March 3, 2015 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florentdestremau/59fe3568ca72943aece5 to your computer and use it in GitHub Desktop.
Save florentdestremau/59fe3568ca72943aece5 to your computer and use it in GitHub Desktop.
VirtualHost for sf2 apache 2.4+
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
# enable the .htaccess rewrites
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment