Your message dated Sun, 17 Apr 2022 14:23:40 +0200
with message-id <[email protected]>
and subject line Re: libapache2-mod-python
has caused the Debian Bug report #461187,
regarding libapache2-mod-python
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
461187: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461187
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libapache2-mod-python
Version: 3.3.1-2

It shows random site from two available virtualhosts.

Config :
<Location "/">
PythonPath "['/path/to/src'] + sys.path"
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE twistedlogs.settings
PythonInterpreter main_interpreter
PythonDebug On
</Location>

with "PythonInterpreter twistedlogs" on first virtualhost and
"PythonInterpreter myAnotherproject" it throws exception :


{{{
MOD_PYTHON ERROR

ProcessId:      3435
Interpreter:    'twistedlogs'

ServerName:     '80.93.122.37'
DocumentRoot:   '/home/httpd/tw'

URI:            '/'
Location:       '/'
Directory:      None
Filename:       '/home/httpd/tw/'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line
1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line
1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py",
line 188, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py",
line 161, in __call__
    response = self.get_response(request)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py",
line 130, in get_response
    callback, param_dict = resolver.resolve500()

  File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py",
line 275, in resolve500
    return self._resolve_special('500')

  File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py",
line 264, in _resolve_special
    callback = getattr(self.urlconf_module, 'handler%s' % view_type)

  File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py",
line 255, in _get_urlconf_module
    raise ImproperlyConfigured, "Error while importing URLconf %r: %s"
% (self.urlconf_name, e)

ImproperlyConfigured: Error while importing URLconf
'twistedlogs.urls': class.__dict__ not accessible in restricted mode

}}}


P.S.The trick with  """PythonInterpreter main_interpreter""" taken
from here: http://www.modpython.org/pipermail/mod_python/2005-May/017980.html



--- End Message ---
--- Begin Message ---
On Thu, 17 Jan 2008 10:59:14 +0200 Vitaliyi <[email protected]> wrote:
It shows random site from two available virtualhosts.

Please be more descriptive. I am closing this because it does not explain the 
bug and is very old.

--- End Message ---

Reply via email to