-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymfony.conf
57 lines (45 loc) · 1.33 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<VirtualHost *:80>
ServerName _
DocumentRoot /var/www/html/public
DirectoryIndex index.php
<IfFile '/var/www/html/web'>
DocumentRoot /var/www/html/web
DirectoryIndex app.php
</IfFile>
<Directory /var/www/html/public>
AllowOverride None
Order Allow,Deny
Allow from All
FallbackResource /index.php
</Directory>
<Directory /var/www/html/web>
AllowOverride None
Order Allow,Deny
Allow from All
FallbackResource /app.php
</Directory>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
<IfFile '/var/www/html/web'>
RedirectMatch 302 ^/$ /app.php/
</IfFile>
RedirectMatch 302 ^/$ /index.php/
</IfModule>
</IfModule>
<Directory /var/www/html/public/bundles>
FallbackResource disabled
</Directory>
<Directory /var/www/html/web/bundles>
FallbackResource disabled
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>