-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsymfony.conf
28 lines (23 loc) · 845 Bytes
/
symfony.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<VirtualHost *:80>
ServerName symfony.local
ServerAlias www.symfony.local
DocumentRoot /var/www/html/web
<Directory /var/www/html/web>
AllowOverride None
Require all granted
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^(.*)$ app_dev.php [QSA,L]
</IfModule>
</Directory>
<Directory /var/www/html>
Options FollowSymlinks
</Directory>
LogFormat "%{Host}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" **%D**" customlog
ErrorLog /var/log/apache2/symfony.error.log
CustomLog /var/log/apache2/symfony.access.log customlog
</VirtualHost>