-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,58 @@ | ||
LimitRequestLine 32768 | ||
|
||
<VirtualHost *:8443> | ||
ServerName localhost | ||
ErrorLog /dev/stderr | ||
CustomLog /dev/stdout combined | ||
ProxyPreserveHost on | ||
RewriteEngine on | ||
SSLEngine on | ||
SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2 | ||
SSLCertificateFile /etc/ssl/certs/ory-conformity.crt | ||
SSLCertificateKeyFile /etc/ssl/private/ory-conformity.key | ||
RequestHeader set X-Ssl-Cipher "%{SSL_CIPHER}s" | ||
RequestHeader set X-Ssl-Protocol "%{SSL_PROTOCOL}s" | ||
RequestHeader set X-Forwarded-Proto https | ||
RequestHeader set X-Forwarded-Port 8443 | ||
ProxyPass "/" "http://server:8080/" | ||
# RewriteRule "^/(.*)$" "http://server:8080/$1" [P] | ||
ProxyPassReverse "/" "http://server:8080/" | ||
<Location "/"> | ||
Require all granted | ||
</Location> | ||
<Location "/test-mtls/"> | ||
SSLVerifyClient optional_no_ca | ||
SSLVerifyDepth 5 | ||
RequestHeader set X-Ssl-Cert "%{SSL_CLIENT_CERT}s" | ||
RequestHeader set X-Ssl-Verify "%{SSL_CLIENT_VERIFY}s" | ||
RequestHeader set X-Ssl-Cert-Chain-0 "%{SSL_CLIENT_CERT_CHAIN_0}s" | ||
RequestHeader set X-Ssl-Cert-Chain-1 "%{SSL_CLIENT_CERT_CHAIN_1}s" | ||
RequestHeader set X-Ssl-Cert-Chain-2 "%{SSL_CLIENT_CERT_CHAIN_2}s" | ||
RequestHeader set X-Ssl-Cert-Chain-3 "%{SSL_CLIENT_CERT_CHAIN_3}s" | ||
RequestHeader set X-Ssl-Cert-Chain-4 "%{SSL_CLIENT_CERT_CHAIN_4}s" | ||
RequestHeader set X-Ssl-Cert-Chain-5 "%{SSL_CLIENT_CERT_CHAIN_5}s" | ||
</Location> | ||
ServerName localhost | ||
ErrorLog /dev/stderr | ||
CustomLog /dev/stdout combined | ||
ProxyPreserveHost on | ||
RewriteEngine on | ||
SSLEngine on | ||
SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2 | ||
SSLCertificateFile /etc/ssl/certs/ory-conformity.crt | ||
SSLCertificateKeyFile /etc/ssl/private/ory-conformity.key | ||
RequestHeader set X-Ssl-Cipher "%{SSL_CIPHER}s" | ||
RequestHeader set X-Ssl-Protocol "%{SSL_PROTOCOL}s" | ||
RequestHeader set X-Forwarded-Proto https | ||
RequestHeader set X-Forwarded-Port 8443 | ||
ProxyPass "/" "http://server:8080/" | ||
# RewriteRule "^/(.*)$" "http://server:8080/$1" [P] | ||
ProxyPassReverse "/" "http://server:8080/" | ||
<Location "/"> | ||
Require all granted | ||
</Location> | ||
<Location "/test-mtls"> | ||
RequestHeader set X-Test-Mtls-Called-On-Wrong-Host "true" | ||
</Location> | ||
</VirtualHost> | ||
<VirtualHost *:8444> | ||
ServerName localhost | ||
ErrorLog /dev/stderr | ||
CustomLog /dev/stdout combined | ||
ProxyPreserveHost on | ||
RewriteEngine on | ||
SSLEngine on | ||
SSLProtocol +TLSv1.2 +TLSv1.3 | ||
Protocols http/1.1 | ||
SSLCertificateFile /etc/ssl/certs/ory-conformity.crt | ||
SSLCertificateKeyFile /etc/ssl/private/ory-conformity.key | ||
RequestHeader set X-Ssl-Cipher "%{SSL_CIPHER}s" | ||
RequestHeader set X-Ssl-Protocol "%{SSL_PROTOCOL}s" | ||
RequestHeader set X-Forwarded-Proto https | ||
RequestHeader set X-Forwarded-Port 8444 | ||
ProxyPass "/" "http://server:8080/" | ||
ProxyPassReverse "/" "http://server:8080/" | ||
<Location "/"> | ||
Require all granted | ||
</Location> | ||
|
||
SSLVerifyClient optional_no_ca | ||
SSLVerifyDepth 5 | ||
RequestHeader set X-Ssl-Cert "%{SSL_CLIENT_CERT}s" | ||
RequestHeader set X-Ssl-Verify "%{SSL_CLIENT_VERIFY}s" | ||
RequestHeader set X-Ssl-Cert-Chain-0 "%{SSL_CLIENT_CERT_CHAIN_0}s" | ||
RequestHeader set X-Ssl-Cert-Chain-1 "%{SSL_CLIENT_CERT_CHAIN_1}s" | ||
RequestHeader set X-Ssl-Cert-Chain-2 "%{SSL_CLIENT_CERT_CHAIN_2}s" | ||
RequestHeader set X-Ssl-Cert-Chain-3 "%{SSL_CLIENT_CERT_CHAIN_3}s" | ||
RequestHeader set X-Ssl-Cert-Chain-4 "%{SSL_CLIENT_CERT_CHAIN_4}s" | ||
RequestHeader set X-Ssl-Cert-Chain-5 "%{SSL_CLIENT_CERT_CHAIN_5}s" | ||
</VirtualHost> |