aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/templates/vhost_static.conf
blob: 6521b469e618933ae93eccc179e31f8a5dc0a9b3 (plain)
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>
    ServerName static.<%= domain %>

    DocumentRoot <%= vhostdir %>
    CustomLog /var/log/httpd/static_log combined
    ErrorLog  /var/log/httpd/error_static_log
 
    FileETag none
    Header unset ETag
    ExpiresActive On
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType image/gif "access plus 2 months"
    ExpiresByType image/png "access plus 2 months"
    ExpiresByType image/jpeg "access plus 2 months"
    ExpiresByType image/x-icon "access plus 2 months"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
    AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript

    <Location />
       Allow from all
    </Location>

    <Directory <%= vhostdir %>>
       Order deny,allow
       Allow from All
       AllowOverride None
    </Directory>
</VirtualHost>