Bug 974995

Summary: Default configuration does not specify socket prefix
Product: Red Hat Enterprise Linux 6 Reporter: Till Maas <opensource>
Component: mod_wsgiAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 6.6CC: bkearney, fschwarz, jorton, josh.kayse, opensource
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 611182 Environment:
Last Closed: 2013-06-17 10:41:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 611182, 974997    
Bug Blocks:    

Description Till Maas 2013-06-17 10:35:51 UTC
+++ This bug was initially created as a clone of Bug #611182 +++

Currently mod_wsgi does not declare WSGISocketPrefix so mod_wsgi in daemon mode tries to create a socket in /etc/httpd/logs/ which will fail.

I propose to add these lines to /etc/httpd/conf.d/wsgi.conf:

<IfModule mod_wsgi.c>
   WSGISocketPrefix /var/run/mod_wsgi
</IfModule>

Therefore new users don't have to set it explicitely and mod_wsgi on EPEL will be a bit easier to use.

Comment 1 Till Maas 2013-06-17 10:40:40 UTC
Noticed in mod_wsgi-3.2-3.el6

Comment 3 Joe Orton 2013-06-17 10:41:49 UTC
Thanks for the report.

It looks like the best fix for this is to have the internal (hard-coded) default correct, rather than configuring an over-ride for that internal default.

*** This bug has been marked as a duplicate of bug 966311 ***