Skip to content

Instantly share code, notes, and snippets.

@tobalsan
Created May 13, 2020 10:19
Show Gist options
  • Save tobalsan/aaf178392e920dca64dca34e16f05672 to your computer and use it in GitHub Desktop.
Save tobalsan/aaf178392e920dca64dca34e16f05672 to your computer and use it in GitHub Desktop.
Symfony 4 Apache configuration
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /var/www/project/public
DirectoryIndex /index.php
<Directory /var/www/project/public>
AllowOverride None
Order Allow,Deny
Allow from All
FallbackResource /index.php
</Directory>
<Directory /var/www/project/public/bundles>
FallbackResource disabled
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
SetEnv APP_ENV prod
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment