Opened 19 years ago
Closed 14 years ago
#3314 closed defect (worksforme)
TracEnv + TracEnvParentDir failure
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | web frontend/mod_python | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | coderanger@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have two <Location>
s:
<Location />
is a single env at/var/trac/main
<Location /projects>
is a parent_dir at/var/trac
The problem is that Apache helpfuly merges the options from /
into /projects
, and in mod_python 3.1, there is no way to unset an option. This results in the TracEnv taking priority. Many other projects use a marker value to get around this ("." or something).
Attachments (0)
Change History (9)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Milestone: | 0.10 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
So I propose to close the ticket. Please reopen if the solution proposed by coderanger doesn't work for you.
comment:3 by , 19 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
I was the one who filed the ticket, and the reason its not enough is that mod_python 3.2 is not available on many distros yet.
comment:4 by , 19 years ago
Instead of <Location /> try <LocationMatch /(?!projects)>. Then the two blocks should be mutually exclusive and the options won't be applied to both.
comment:5 by , 19 years ago
That works, but is fairly unintuitive. It might be better to have an error shown if both options are set instead of passively ignoring one.
comment:6 by , 18 years ago
Milestone: | → 0.11 |
---|
This shouldn't block 0.10, but I'm adding it to 0.11 so it doesn't get forgoten
comment:8 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:9 by , 14 years ago
Milestone: | next-minor-0.12.x |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
If mod_python has to be used, 3.3.1 is the preferred version, so the solution in comment:1 can be used.
Just tested with mod_python 3.2, and it does work if you do this: