Commit Templates

This commit is contained in:
Gary Larizza 2011-07-15 15:26:35 -07:00
parent 9a51b4aa8d
commit b77062f595
3 changed files with 46 additions and 6 deletions

View File

@ -3,17 +3,17 @@
# Managed by Puppet
# ************************************
NameVirtualHost *:<%= port %>
<VirtualHost *:<%= port %>>
ServerName <%= name %>
<%if serveraliases.is_a? Array -%>
NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
ServerName <%= srvname %>
<% if serveraliases.is_a? Array -%>
<% serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
<% elsif serveraliases != '' -%>
<%= " ServerAlias #{serveraliases}" -%>
<% end -%>
DocumentRoot <%= docroot %>
<Directory <%= docroot %>>
Options Indexes FollowSymLinks MultiViews
Options <%= options %>
AllowOverride None
Order allow,deny
allow from all
@ -21,5 +21,6 @@ NameVirtualHost *:<%= port %>
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= name %>_access.log combined
ServerSignature On
ServerSignature Off
</VirtualHost>

View File

@ -0,0 +1,28 @@
NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
<% if ssl == true %>
SSLEngine on
SSLCertificateFile <%= ssl_path %>/certs/pl.cert
SSLCertificateKeyFile <%= ssl_path %>/private/pl.key
<% end %>
ServerName <%= srvname %>
<% if serveraliases.is_a? Array %>
<% serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
<% elsif serveraliases != '' %>
<%= " ServerAlias #{serveraliases}" %>
<% end %>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / <%= dest %>/
ProxyPassReverse / <%= dest %>/
ProxyPreserveHost On
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= name %>_access.log combined
</VirtualHost>

View File

@ -0,0 +1,11 @@
NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
ServerName <%= srvname %>
<% if serveraliases.is_a? Array %>
<% serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
<% elsif serveraliases != '' %>
<%= " ServerAlias #{serveraliases}" %>
<% end %>
Redirect / <%= dest %>/
</VirtualHost>