forked from citizen63000/tp-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.conf
53 lines (44 loc) · 1.59 KB
/
app.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
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/app/public
<Directory /var/www/app/public>
AllowOverride All
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app.php [QSA,L]
# Allow Authorization header
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
</IfModule>
Require all granted
</Directory>
# Assets as symlinks
<Directory /var/www/app>
Options FollowSymlinks
</Directory>
# Disable the RewriteEngine for the asset directories
# which will allow apache to simply reply with a 404 when files are
# not found instead of passing the request into the full symfony stack
<Directory /var/www/app/public/assets>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
# DISABLE ALL CACHING WHILE DEVELOPING
<FilesMatch "\.(html|htm|js|css|json)$">
FileETag None
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Note "CACHING IS DISABLED ON LOCALHOST"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</IfModule>
</FilesMatch>
ErrorLog /var/www/app/var/log/error.log
CustomLog /var/www/app/var/log/access.log combined
</VirtualHost>