Added fix for mod_wsgi socket path on CentOS/RedHat/Fedora
This commit is contained in:
parent
5924caabe1
commit
3a40b11a62
2 changed files with 9 additions and 0 deletions
2
apache/files/mod_wsgi.conf
Normal file
2
apache/files/mod_wsgi.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
LoadModule wsgi_module modules/mod_wsgi.so
|
||||||
|
WSGISocketPrefix /var/run/mod_wsgi/wsgi
|
|
@ -674,8 +674,15 @@ class apache::mod::wsgi {
|
||||||
}
|
}
|
||||||
"centos","redhat","fedora": {
|
"centos","redhat","fedora": {
|
||||||
apache::configfile { "wsgi.conf":
|
apache::configfile { "wsgi.conf":
|
||||||
|
source => "puppet:///modules/apache/mod_wsgi.conf",
|
||||||
require => Package["mod_wsgi"],
|
require => Package["mod_wsgi"],
|
||||||
}
|
}
|
||||||
|
file { "/var/run/mod_wsgi":
|
||||||
|
ensure => directory,
|
||||||
|
mode => "0755",
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Apache module not supported in ${::operatingsystem}.")
|
fail("Apache module not supported in ${::operatingsystem}.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue