-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapache.conf
More file actions
30 lines (25 loc) · 1.09 KB
/
Copy pathapache.conf
File metadata and controls
30 lines (25 loc) · 1.09 KB
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
<VirtualHost *:80>
DocumentRoot /app/www
<Directory /app/www>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Enable compression
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
AddOutputFilterByType DEFLATE image/svg+xml application/rss+xml application/atom_xml application/xml application/xhtml+xml application/font-woff2 application/vnd.ms-fontobject application/x-font-ttf application/font-sfnt
# Browser compatibility
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
# Brotli Compression
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>
# Error logs
ErrorLog /app/logs/apache_error.log
CustomLog /app/logs/apache_access.log combined
</VirtualHost>
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule brotli_module modules/mod_brotli.so