non_ssl.template.erb 1.53 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
####
##
#
#  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.
#
##
###

13
% ips.each do |ip|
14
NameVirtualHost <%= ip %>:80
15
% end
16
17
18

<VirtualHost <%= ips.collect{|ip| ip+":80"}.join(" ") %>>

19
20
21
22
23
        #
        # Put our server name
        #
        ServerName  <%= domain %>

24

25
26
27
        #
        # And server alias in place
        #
28
29
        <%= server_aliases %>

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
        #
        #  Allow users to override settings via .htaccess
        #
        <Directory <%=domain_directory%> >
                AllowOverride all
        </Directory>

        #
        #  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.
        #
56
57
        ErrorLog   "|| /usr/sbin/symbiosis-apache-logger -s -u <%= domain.uid %> -g <%= domain.gid %> <%= domain.log_dir %>/error.log"
        CustomLog  "|| /usr/sbin/symbiosis-apache-logger -s -u <%= domain.uid %> -g <%= domain.gid %> <%= domain.log_dir %>/access.log" combined
58
59
</VirtualHost>