1 |
boklm |
1010 |
<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 |
boklm |
1012 |
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 |
boklm |
1010 |
|
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> |
31 |
boklm |
3257 |
|
32 |
|
|
<VirtualHost *:443> |
33 |
|
|
ServerName static.<%= domain %> |
34 |
|
|
|
35 |
|
|
DocumentRoot <%= vhostdir %> |
36 |
|
|
CustomLog /var/log/httpd/static_log combined |
37 |
|
|
ErrorLog /var/log/httpd/error_static_log |
38 |
|
|
|
39 |
|
|
<%= scope.function_template(["apache/vhost_ssl.conf"]) %> |
40 |
|
|
|
41 |
|
|
FileETag none |
42 |
|
|
Header unset ETag |
43 |
|
|
ExpiresActive On |
44 |
|
|
ExpiresByType text/css "access plus 1 month" |
45 |
|
|
ExpiresByType image/gif "access plus 2 months" |
46 |
|
|
ExpiresByType image/png "access plus 2 months" |
47 |
|
|
ExpiresByType image/jpeg "access plus 2 months" |
48 |
|
|
ExpiresByType image/x-icon "access plus 2 months" |
49 |
|
|
ExpiresByType application/x-javascript "access plus 1 month" |
50 |
|
|
ExpiresByType text/javascript "access plus 1 month" |
51 |
|
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css |
52 |
|
|
AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript |
53 |
|
|
|
54 |
|
|
<Location /> |
55 |
|
|
Allow from all |
56 |
|
|
</Location> |
57 |
|
|
|
58 |
|
|
<Directory <%= vhostdir %>> |
59 |
|
|
Order deny,allow |
60 |
|
|
Allow from All |
61 |
|
|
AllowOverride None |
62 |
|
|
</Directory> |
63 |
|
|
</VirtualHost> |