blob: d250a712362504a54f2016710857f7f92923cee7 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<VirtualHost *:80>
ServerName static.<%= domain %>
DocumentRoot <%= scope.lookupvar("websites::static::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 />
Deny from all
</Location>
<Location /g/>
Allow from all
</Location>
<Directory <%= scope.lookupvar("websites::static::vhostdir") %>>
Order deny,allow
Deny from All
AllowOverride None
</Directory>
<Directory <%= scope.lookupvar("websites::static::vhostdir") %>/g>
Order deny,allow
Allow from All
AllowOverride None
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName static.<%= domain %>
DocumentRoot <%= scope.lookupvar("websites::static::vhostdir") %>
CustomLog /var/log/httpd/static_log combined
ErrorLog /var/log/httpd/error_static_log
<%= scope.function_template(["apache/vhost_ssl.conf"]) %>
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 />
Deny from all
</Location>
<Location /g/>
Allow from all
</Location>
<Directory <%= scope.lookupvar("websites::static::vhostdir") %>>
Order deny,allow
Deny from All
AllowOverride None
</Directory>
<Directory <%= scope.lookupvar("websites::static::vhostdir") %>/g>
Order deny,allow
Allow from All
AllowOverride None
</Directory>
</VirtualHost>
|