puppetlabs/apache module and changin the default port

230 views
Skip to first unread message

tobias...@gmail.com

unread,
Oct 26, 2015, 9:41:02 AM10/26/15
to Puppet Users

As far as I have read it's not possible to change the default port for Apache

class

{ 'apache': default => 8080, }

apache::listen

{ '8080': }

will just add the port 8080 but the port 80 is still available.


Is this a bug? If not does somebody know how to do that?

jcbollinger

unread,
Oct 27, 2015, 10:16:59 AM10/27/15
to Puppet Users


As far as I can tell from the module's source, only the Listen directives you explicitly declare are recorded in the apache configuration (specifically, in ports.conf).  According to the apache docs, the server listens only to those addresses/ports you explicitly configure.  The module source appears to indicate that by default, puppet will restart the httpd service if it modifies apache configuration, thereby making it read and use the new configuration.

Therefore, I am inclined to believe either that you are using a (very) old version of the module, or that your report is inaccurate (perhaps puppet has not or cannot apply the configuration you specify?).  What version of the module are you in fact using?  How do you reproduce and substantiate this issue?


John

Reply all
Reply to author
Forward
0 new messages