[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dual port 80 443

> Am 26.10.2018 um 08:48 schrieb Edwardo Garcia <wdgarc88@xxxxxxxxx>:
> Hi,
> We have only few domains to manage, usually either http or https, but we have lately had requests for both (we  know defeat purpose but customer knows what they want and they no take monetary or personal informations on website)
> I know this works with duplication of virtualhosts, but should it also work with
> <VirtualHost [2001:1:1:1::1]:80 [2001:1:1:1::1]:443>
> ...
> </VirtualHost>
> To avoid duplicating? 
> nginx does not seem to have this limitation, so I'm surprised httpd2 does.
> If I omit ports, it will errors on http  if ssl engine on.
> or have I overlooked option?

The usual approach is, I think, to put the generic config into its own file and include that in each vhost. It's not ideal.