Commit 34c699a0 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Added non-SSL apache config template.

 * Updated templates to say that edits are allowed.
parent 1733f7f3
####
##
#
# This file is automatically generated from the template located at
# /etc/symbiosis/apache.d/non_ssl.template.erb.
#
# Feel free to make changes to this file. If changes are made, then this file
# will not be updated automatically when the template changes.
#
##
###
<% ips.each do |ip| %>
NameVirtualHost <%= ip %>:80
<% end %>
<VirtualHost <%= ips.collect{|ip| ip+":80"}.join(" ") %>>
#
# This is the directory people are redirected to
# if their site is empty.
#
Alias /bytemark/ "/usr/share/symbiosis-static/"
<Directory "/usr/share/symbiosis-static/">
DirectoryIndex index.html
AllowOverride None
</Directory>
#
# Allow users to override settings via .htaccess
#
<Directory <%=domain_directory%> >
AllowOverride all
</Directory>
#
# And this makes that redirection happen.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /bytemark/
</LocationMatch>
#
# The document root
#
DocumentRoot <%= domain_directory %>/public/htdocs/
#
# General CGI Handling
#
ScriptAlias /cgi-bin/ <%= domain_directory %>/public/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
#
# We need to log the virtual hostname the incoming request was
# made against, so that the cron-job in /etc/cron.daily may generate
# statistics for each domain.
#
ErrorLog /var/log/apache2/<%= domain %>.error.log
CustomLog /var/log/apache2/<%= domain %>.access.log combined
</VirtualHost>
####
##
#
# DO NOT EDIT THIS FILE - CHANGES WILL BE OVERWRITTEN
#
# This file is automatically generated from the template located at
# /etc/symbiosis/apache.d/ssl.template.erb
#
# If you absolutely MUST make changes, then please apply them to
# the master template file. Then run the following command to
# make them live:
# /etc/symbiosis/apache.d/ssl.template.erb.
#
# create-ssl-sites --force --verbose
#
##
###
##
# Feel free to make changes to this file, and thereafter it will not be
# automatically updated if the template, or SSL configuration changes.
#
# For SSL documenation please consult:
#
......@@ -90,10 +81,8 @@ NameVirtualHost <%= ip %>:80
Options +ExecCGI
</Location>
#
# We need to log the virtual hostname the incoming request was
# We need to log the virtual hostname the incoming request was
# made against, so that the cron-job in /etc/cron.daily may generate
# statistics for each domain.
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment