Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Eric Covener
On Wed, Dec 6, 2017 at 4:10 AM, Adam Cecile wrote: > Hi, > > I'm trying to achieve a simplier vhost configuration using if statements but > httpd refuses to start when I put SSL related directive inside the if block: > > > > ServerName www.comptoir-hardware.com >

Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Adam Cecile
Hi, Well it depends who's editing the file. Some people are used to modify just the first block and ignore the following. You know what I mean ;-) This is the reason why I'm trying to turn these Apache configuration "nginx way". Less blocks, less lines, less mistakes made. Adam. On

Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Gillis J. de Nijs
Hi Adam, Simplest, in my opnion, is simplest to read and parse for a human. What's wrong with: ## One VirtualHost that does everything ServerName www.comptoir-hardware.com SSLEngine on SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt SSLCertificateKeyFile

[users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Adam Cecile
Hi, I'm trying to achieve a simplier vhost configuration using if statements but httpd refuses to start when I put SSL related directive inside the if block:   ServerName www.comptoir-hardware.com   ServerAlias www.comptoir-hardware.com   ServerAlias new.comptoir-hardware.com   ServerAlias