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
> ServerAlias www.comptoir-hard
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 12/06/201
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 /etc/ssl/pr
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