1 |
<VirtualHost *:80> |
2 |
ServerName static.<%= domain %> |
3 |
|
4 |
DocumentRoot <%= vhostdir %> |
5 |
CustomLog /var/log/httpd/static_log combined |
6 |
ErrorLog /var/log/httpd/error_static_log |
7 |
|
8 |
FileETag none |
9 |
Header unset ETag |
10 |
ExpiresActive On |
11 |
ExpiresByType text/css "access plus 1 month" |
12 |
ExpiresByType image/gif "access plus 2 months" |
13 |
ExpiresByType image/png "access plus 2 months" |
14 |
ExpiresByType image/jpeg "access plus 2 months" |
15 |
ExpiresByType image/x-icon "access plus 2 months" |
16 |
ExpiresByType application/x-javascript "access plus 1 month" |
17 |
ExpiresByType text/javascript "access plus 1 month" |
18 |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css |
19 |
AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript |
20 |
|
21 |
<Location /> |
22 |
Allow from all |
23 |
</Location> |
24 |
|
25 |
<Directory <%= vhostdir %>> |
26 |
Order deny,allow |
27 |
Allow from All |
28 |
AllowOverride None |
29 |
</Directory> |
30 |
</VirtualHost> |