Include cgi_module.conf
LoadModule env_module ${AP_LIBEXECDIR}/mod_env.so
LoadModule rewrite_module ${AP_LIBEXECDIR}/mod_rewrite.so
# Default index file, define OCSP_INDEX in the test specific
# config to override
Define OCSP_INDEX ${PWD}/authority/ocsp_index.txt
RewriteEngine On
RewriteRule ^/ocsp(.*) /ocsp.cgi$1 [L]
# Some clients seem to have trouble with chunked
# encoding, so force HTTP/1.0 for now.
SetEnv downgrade-1.0
# certificates and key for ocsp.cgi
SetEnv CA_CERT ${PWD}/authority/x509.pem
SetEnv OCSP_INDEX ${OCSP_INDEX}
SetEnv OCSP_CERT ${PWD}/ocsp-responder/x509.pem
SetEnv OCSP_KEY ${PWD}/ocsp-responder/secret.key
# Pass OPENSSL variable to CGI script if set
SetEnv OPENSSL ${OPENSSL}
Options +ExecCGI