1 | # $Id: apache-template-2.4.conf 63692 2016-09-02 12:41:41Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Test Manager - Apache 2.4 configuration sample.
|
---|
4 | #
|
---|
5 | # Use the new Define directive to define TestManagerRootDir and
|
---|
6 | # VBoxBuildOutputDir before including this file.
|
---|
7 | #
|
---|
8 |
|
---|
9 | #
|
---|
10 | # Copyright (C) 2012-2015 Oracle Corporation
|
---|
11 | #
|
---|
12 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
13 | # available from http://www.virtualbox.org. This file is free software;
|
---|
14 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
15 | # General Public License (GPL) as published by the Free Software
|
---|
16 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
17 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
18 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
19 | #
|
---|
20 | # The contents of this file may alternatively be used under the terms
|
---|
21 | # of the Common Development and Distribution License Version 1.0
|
---|
22 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
23 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
24 | # CDDL are applicable instead of those of the GPL.
|
---|
25 | #
|
---|
26 | # You may elect to license modified versions of this file under the
|
---|
27 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
28 | #
|
---|
29 |
|
---|
30 | <LocationMatch "^/testmanager/logout.py">
|
---|
31 | AuthType Basic
|
---|
32 | AuthName "Test Manager"
|
---|
33 | AuthUserFile ${TestManagerRootDir}/misc/htpasswd-logout
|
---|
34 | Require user logout
|
---|
35 | </LocationMatch>
|
---|
36 |
|
---|
37 | <LocationMatch "^/testmanager/(?!(testboxdisp.py|logout.py|/*htdocs/downloads/.*))">
|
---|
38 | AuthType Basic
|
---|
39 | AuthName "Test Manager"
|
---|
40 | AuthUserFile ${TestManagerRootDir}/misc/htpasswd-sample
|
---|
41 | Require valid-user
|
---|
42 | </LocationMatch>
|
---|
43 |
|
---|
44 | <LocationMatch "^/testmanager/testboxdisp.py">
|
---|
45 | Order deny,allow
|
---|
46 | Require all granted
|
---|
47 | </LocationMatch>
|
---|
48 |
|
---|
49 | # These two directives are only for local testing!
|
---|
50 | Alias /testmanager/htdocs/downloads/VBoxValidationKit.zip ${VBoxBuildOutputDir}/VBoxValidationKit.zip
|
---|
51 | <Location /testmanager/htdocs/downloads/VBoxValidationKit.zip>
|
---|
52 | Options Indexes
|
---|
53 | Require all granted
|
---|
54 | </Location>
|
---|
55 |
|
---|
56 | Alias /testmanager/htdocs/ ${TestManagerRootDir}/htdocs/
|
---|
57 | <Directory ${TestManagerRootDir}/htdocs/>
|
---|
58 | AllowOverride None
|
---|
59 | Options Indexes
|
---|
60 | </Directory>
|
---|
61 |
|
---|
62 | Alias /testmanager/logs/ /var/tmp/testmanager/
|
---|
63 | <Directory /var/tmp/testmanager/>
|
---|
64 | AllowOverride None
|
---|
65 | Options Indexes
|
---|
66 | </Directory>
|
---|
67 |
|
---|
68 | Alias /testmanager/ ${TestManagerRootDir}/cgi/
|
---|
69 | <Directory ${TestManagerRootDir}/cgi/>
|
---|
70 | AllowOverride None
|
---|
71 | Options Indexes ExecCGI
|
---|
72 | DirectoryIndex index.py
|
---|
73 | AddHandler cgi-script .py
|
---|
74 | </Directory>
|
---|
75 |
|
---|