Bug 57646 - SSLEngine inside If directive
Summary: SSLEngine inside If directive
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ssl (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2015-02-27 21:58 UTC by Brian Minton
Modified: 2015-02-27 22:02 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Brian Minton 2015-02-27 21:58:04 UTC
I'd like to use SSLEngine inside of an If directive.  That way, I could do something like:
<VirtualHost *:80 *:443>
	<If "%{REQUEST_SCHEME} == 'https'">
		SSLEngine On
		SSLCertificateFile /etc/apache2/ssl/mycert.crt
		SSLCertificateKeyFile /etc/apache2/ssl/mycert.key
	#additional per-virtual-host config here
Comment 1 Brian Minton 2015-02-27 22:01:35 UTC
or or course, <If "%{HTTP_HOST} == 'example.com'">
Comment 2 Brian Minton 2015-02-27 22:02:17 UTC
or        <If "%{SERVER_PORT} -eq 443">