asynciomainproxy-ticket
Last change
on this file since c825c3a was
c825c3a,
checked in by Fiona Klute <fiona.klute@…>, 4 years ago
|
Test suite: Move directory for server identity into authority directory
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | # Turn environment variable TEST_HTTP_PORT into a server variable. |
---|
2 | Define TEST_HTTP_PORT ${TEST_HTTP_PORT} |
---|
3 | |
---|
4 | Include ${srcdir}/base_apache.conf |
---|
5 | GnuTLSCache ${DEFAULT_CACHE} |
---|
6 | |
---|
7 | # mod_status offers an easy way to check if we were actually |
---|
8 | # redirected to HTTPS |
---|
9 | LoadModule status_module ${AP_LIBEXECDIR}/mod_status.so |
---|
10 | <Location /status> |
---|
11 | SetHandler server-status |
---|
12 | </Location> |
---|
13 | |
---|
14 | # Configure mod_rewrite to redirect all HTTP request to HTTPS. Note |
---|
15 | # that "RewriteOptions Inherit" must be set inside virtual hosts, |
---|
16 | # otherwise they will ignore the global settings. |
---|
17 | LoadModule rewrite_module ${AP_LIBEXECDIR}/mod_rewrite.so |
---|
18 | RewriteEngine On |
---|
19 | RewriteCond "%{HTTPS}" "off" |
---|
20 | RewriteRule "(.*)" "https://${TEST_HOST}:${TEST_PORT}%{REQUEST_URI}" [R=301,L] |
---|
21 | |
---|
22 | <VirtualHost _default_:${TEST_HTTP_PORT}> |
---|
23 | ServerName ${TEST_HOST} |
---|
24 | RewriteOptions Inherit |
---|
25 | </VirtualHost> |
---|
26 | |
---|
27 | <VirtualHost _default_:${TEST_PORT}> |
---|
28 | ServerName ${TEST_HOST} |
---|
29 | RewriteOptions Inherit |
---|
30 | GnuTLSEnable On |
---|
31 | GnuTLSCertificateFile authority/server/x509.pem |
---|
32 | GnuTLSKeyFile authority/server/secret.key |
---|
33 | GnuTLSPriorities NORMAL |
---|
34 | </VirtualHost> |
---|
Note: See
TracBrowser
for help on using the repository browser.