Code

Opened 7 years ago

Closed 7 years ago

#5303 closed (fixed)

PythonImport (for handling eggs) can't be placed inside VirtualHost or Location

Reported by: anonymous Owned by: jacob
Component: Documentation Version: master
Severity: Keywords: mod_python, PythonImport, egg
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Placing PythonImport inside of <Location> (as it is recommended in the Install mod_python documentation of Django) leads to an error when apache loads it's conf-file. Placing it inside <VirtualHost> doesn't work either.

Reason:
PythonImport is a server config directive (compare http://www.modpython.org/pipermail/mod_python/2005-October/019272.html)

Quote from http://httpd.apache.org/docs/2.0/mod/directive-dict.html#Context

server config
This means that the directive may be used in the server configuration files (e.g., httpd.conf), but not within any <VirtualHost> or <Directory> containers. It is not allowed in .htaccess files at all.
<<<

All the best for now - and thanks for developing Django!

Wolfram

Attachments (1)

modpython.diff (694 bytes) - added by Simon G. <dev@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Simon G. <dev@…>

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Has patch set
  • Keywords mod_python, added; miod_python, Installation, removed
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

Well spotted, thank you.

comment:2 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [6034]) Fixed #5303 -- Fixed incorrect statement about PythonPath directive in docs/modpython.txt

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.