﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
5558	apache config files on wiki don't work	Andrew		"These configurations for apache either cause a 500 error, or they send the browser into a 301 loop with the requested page.

for instance, this is the error produced by the wsgi method:

{{{
mod_wsgi (pid=26876): Target WSGI script '/srv/audio-video.gnu.org/mediagoblin/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=26876): Exception occurred processing WSGI script '/srv/audio-video.gnu.org/mediagoblin/wsgi.py'.
Traceback (most recent call last):
  File ""/srv/audio-video.gnu.org/mediagoblin/wsgi.py"", line 29, in <module>
    application = loadapp('config:' + CONFIG_PATH)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 271, in loadobj
    global_conf=global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 296, in loadcontext
    global_conf=global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 450, in get_context
    global_additions=global_additions)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 559, in _pipeline_app_context
    APP, pipeline[-1], global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 454, in get_context
    section)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 406, in get_context
    global_conf=global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 296, in loadcontext
    global_conf=global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 620, in get_context
    object_type, name=name) 
  File ""/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py"", line 640, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File ""/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py"", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File ""/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py"", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
[Wed Jan 31 15:49:02.681766 2018] [wsgi:error] [pid 26876:tid 139806997743360] [remote 2603:3005:71a:2ee0:1c3a:ff7c:b34d:53c9:60258] ContextualVersionConflict: (mock 1.3.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('mock==1.0.1'), set(['mediagoblin']))
}}}

I've also tried using the following config, but get a 301 redirect loop to the requested URL itself:

{{{
ProxyPass ""/test"" ""fcgi://localhost:26543/""
}}}

A coworker managed to get the server past 500 errors with some configuration of the fcgi method, but we ended up with a redirect loop anyhow."	defect	closed	major		programming	fixed	apache		
