httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Brooks <>
Subject [users@httpd] conditional expression looking for another virtualhost entry
Date Fri, 07 Jul 2017 20:42:02 GMT

I am modifying a template in virtualmin.  I want to have in a <virtualhost *:80> section
something to the effect of:

“if there is a <virtualhost *:443> section with the same servername directive
	redirect permanent / https://<servername>


So basically I want apache to figure out if there is another virtualhost and enable an entry
based on that.

Does that make sense?


Jason Brooks	Systems Administrator
eROI	Performance is Art.
m:	505 nw couch #300	w: <>
t:	503.290.3105	f:	503.228.4249

fb: <>

View raw message