source: mod_gnutls/test/tests/19_TLS_reverse_proxy/apache.conf @ 6e6a4e4

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since 6e6a4e4 was 6e6a4e4, checked in by Thomas Klute <thomas2.klute@…>, 5 years ago

Test case for TLS reverse proxy

This commit adds a simple test for a reverse proxy with TLS on both front end and
back end connections, with both Apache instances using mod_gnutls. The proxy
server checks the back end server's certificate.

A small whitespace issue in base_apache.conf has been found and fixed in the
process of writing the test case.

  • Property mode set to 100644
File size: 600 bytes
Line 
1Include ${PWD}/../../base_apache.conf
2
3GnuTLSCache dbm cache/gnutls_cache
4
5LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
6LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
7
8<VirtualHost ${TEST_IP}:${TEST_PORT}>
9 ServerName ${TEST_HOST}
10 GnuTLSEnable On
11 GnuTLSCertificateFile server/x509.pem
12 GnuTLSKeyFile server/secret.key
13 GnuTLSPriorities NORMAL
14
15 SSLProxyEngine On
16 GnuTLSProxyCAFile ${PWD}/../../authority/x509.pem
17 ProxyPass /proxy/ https://${BACKEND_HOST}:${BACKEND_PORT}/
18 ProxyPassReverse /proxy/ https://${BACKEND_HOST}:${BACKEND_PORT}/
19</VirtualHost>
Note: See TracBrowser for help on using the repository browser.