Created
May 13, 2020 10:19
-
-
Save tobalsan/aaf178392e920dca64dca34e16f05672 to your computer and use it in GitHub Desktop.
Symfony 4 Apache configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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