line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
4122
|
% my $args = shift; |
|
1
|
|
|
1
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
97
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
451
|
|
2
|
|
|
|
|
|
|
# Virtual host configuaration for <%=$$args{ServerName}%> served by Ado |
3
|
|
|
|
|
|
|
# Generated by Ado::Command::generate::apache2vhost using template <%= __FILE__ %>. |
4
|
|
|
|
|
|
|
# Note! not sure if the produced vhost configuration will work fine for you |
5
|
|
|
|
|
|
|
# so make sure to test locally first. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
> |
8
|
|
|
|
|
|
|
% if($$args{with_suexec}){ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Make sure to set the proper user and group |
11
|
|
|
|
|
|
|
SuexecUserGroup <%= $$args{user} %> <%= $$args{group} %> |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
% } |
14
|
|
|
|
|
|
|
ServerName <%=$$args{ServerName}%> |
15
|
|
|
|
|
|
|
ServerAlias <%=$$args{ServerAlias}%> |
16
|
|
|
|
|
|
|
ServerAdmin <%=$$args{ServerAdmin}%> |
17
|
|
|
|
|
|
|
DocumentRoot <%=$$args{DocumentRoot}%> |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, |
20
|
|
|
|
|
|
|
# error, crit, alert, emerg. |
21
|
|
|
|
|
|
|
# It is also possible to configure the loglevel for particular |
22
|
|
|
|
|
|
|
# modules, e.g. |
23
|
|
|
|
|
|
|
#LogLevel info ssl:warn rewrite:trace3 |
24
|
|
|
|
|
|
|
LogLevel debug |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
ErrorLog <%=$$args{DocumentRoot}%>/log/apache2_error.log |
27
|
|
|
|
|
|
|
CustomLog <%=$$args{DocumentRoot}%>/log/apache2_access.log combined |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Use .htaccess files for overriding and never show them. |
30
|
|
|
|
|
|
|
AccessFileName .htaccess |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
#2.2 configuration: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Order deny,allow |
35
|
|
|
|
|
|
|
Deny from all |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
#2.4 configuration: |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Require all denied |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
"> |
43
|
|
|
|
|
|
|
Options +Indexes +FollowSymLinks +ExecCGI |
44
|
|
|
|
|
|
|
AllowOverride All |
45
|
|
|
|
|
|
|
#AllowOverride None |
46
|
|
|
|
|
|
|
#see http://httpd.apache.org/docs/2.4/upgrading.html |
47
|
|
|
|
|
|
|
#2.2 configuration: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Order deny,allow |
50
|
|
|
|
|
|
|
Allow from all |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
#2.4 configuration: |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Require all granted |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|