Project

General

Profile

Bug #2346

Installer does not generate valid apache configuration

Added by Justice London over 6 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

At least under Ubuntu, the installer is not generating valid apache configurations for the foreman side of things, and this causes an SSL error (which I reported in IRC).

Basically if you specify a vhost while NOT specifying a NameVirtualHost setting, apache freaks out.

The fix for this is simple in Ubuntu. Add the following to ports.conf:

<IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to <VirtualHost *:443> # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP.
Listen 443
NameVirtualHost *:443
</IfModule>

Then you need to modify the foreman installer to use then:
<VirtualHost *:443> instead of the server IP... or you could use the server IP, but I think it should be safe to not do so.

History

#1 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Closed
  • Target version set to 1.2.0
  • % Done changed from 0 to 100

Thanks for the report, I think this has now been resolved by https://github.com/theforeman/puppet-foreman/commit/2a756241d52.

#2 Updated by Greg Sutcliffe about 1 year ago

  • Target version deleted (1.2.0)

Also available in: Atom PDF