# vhost-ssl

**URL:** <https://forums.suse.com/t/vhost-ssl/33172>\
**Category:** SLES Configure-Administer\
**Created:** [November 12, 2018, 5:32pm UTC](https://forums.suse.com/t/vhost-ssl/33172 "2018-11-12T17:32:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [November 12, 2018, 5:32pm UTC](https://forums.suse.com/t/vhost-ssl/33172/1 "2018-11-12T17:32:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 12, 2018, 5:32pm UTC](https://forums.suse.com/t/vhost-ssl/33172/2 "2018-11-12T17:32:02Z")

</div>

Hi,

SLES15:  
How to get SSL with apache running?

There is a vhost.conf and a vhost-ssl.conf. Cert and key (For test as  
selfsigned cert) is at the configured place. But after a restart the  
local port at 443 is not open. (via http(Port 80) web-content is accessable)

journal shows no error; apache2/error\_log shows :“AH01873: Init: Session  
Cache is not configured [hint: SSLSessionCache]”  
But this is only a warning …

Bernd

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 13, 2018, 1:56pm UTC](https://forums.suse.com/t/vhost-ssl/33172/3 "2018-11-13T13:56:50Z")

</div>

Hi Bernd,

in case you don’t use YaST to configure httpd (and if you don’t - I’d recommend not to open the YaST httpd module it if you haven’t saved your config files :-/ ), have a look at /etc/sysconfig/apache2 - in APACHE\_MODULES, you need to have “ssl” and in APACHE\_SERVER\_FLAGS you need “SSL” added. See the comments regarding SSL, right before APACHE\_MODULES.

If you have httpd running, you can check via “ps” if “-DSSL” is active - if it’s not, you’re missing part of the configuration.

Regards,  
J

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 13, 2018, 2:55pm UTC](https://forums.suse.com/t/vhost-ssl/33172/4 "2018-11-13T14:55:38Z")

</div>

Am 13.11.18 um 13:04 schrieb jmozdzen:[color=blue]

> Hi Bernd,
> 
> in case you don’t use YaST to configure httpd (and if you don’t - I’d  
> recommend not to open the YaST httpd module it if you haven’t saved your  
> config files :-/ ), have a look at /etc/sysconfig/apache2 - in  
> APACHE\_MODULES, you need to have “ssl” and in APACHE\_SERVER\_FLAGS you  
> need “SSL” added. See the comments regarding SSL, right before  
> APACHE\_MODULES.[/color]  
> $Â§%& … sysconfig … there were the ant in the bed …  
> I have struggled there years ago …

Thx!

Bernd

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 13, 2018, 3:36pm UTC](https://forums.suse.com/t/vhost-ssl/33172/5 "2018-11-13T15:36:38Z")

</div>

… and new question.

I can access my index.html via http. But when test via https I get an 403 ?

Path are checked, there are noch typos …

Bernd

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 13, 2018, 3:50pm UTC](https://forums.suse.com/t/vhost-ssl/33172/6 "2018-11-13T15:50:51Z")

</div>

Hi Bernd,

[QUOTE=nntp-user;55216]… and new question.

I can access my index.html via http. But when test via https I get an 403 ?

Path are checked, there are noch typos …

Bernd[/QUOTE]

and a question in return: What’s in the logs (/var/log/apache2/\*, if you haven’t setup different locations)?

Regards,  
J

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 13, 2018, 4:08pm UTC](https://forums.suse.com/t/vhost-ssl/33172/7 "2018-11-13T16:08:18Z")

</div>

Am 13.11.18 um 14:54 schrieb jmozdzen:[color=blue]

> Hi Bernd,[/color]  
> (…)[color=blue][color=green]
> 
> > I can access my index.html via http. But when test via https I get an  
> > 403 ?
> > 
> > Path are checked, there are noch typos …[/color][/color]  
> > (…)  
> > [color=blue]  
> > and a question in return: What’s in the logs (/var/log/apache2/\*, if you  
> > haven’t setup different locations)?[/color]  
> > The -error\_log say:

[authz\_core:error] (…) AH01630: client denied by server configuration:  
(here is the correct Path included)

… but I see an warning in the main error\_log:  
[ssl:warn] (…) AH01916: Init: You configured HTTP(80) on the standard  
HTTPS(443) port!

But in the vhost.conf is only one entry with a port:

and in the vhost-ssl.conf:

Bernd

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 14, 2018, 12:33pm UTC](https://forums.suse.com/t/vhost-ssl/33172/8 "2018-11-14T12:33:09Z")

</div>

Am 12.11.18 um 16:32 schrieb nntp-user:[color=blue]

> SLES15:  
> Â How to get SSL with apache running?
> 
> There is a vhost.conf and a vhost-ssl.conf. Cert and key (For test as  
> selfsigned cert) is at the configured place. But after a restart the  
> local port at 443 is not open. (via http(Port 80) web-content is  
> accessable)
> 
> journal shows no error; apache2/error\_log shows :“AH01873: Init: Session  
> Cache is not configured [hint: SSLSessionCache]”  
> But this is only a warning …  
> [/color]

There is no problem in certificate config.

The problem was the (new in apache 2.4) access restrictions. I copied  
the section from vhost.conf into vhost-ssl.conf and _bingo_.

I had assumed that the vhost-ssl.conf is an ‘add-on’ to the  
vhost-ssl.conf but this is not.

Bernd
