Opened 18 years ago
Closed 18 years ago
#4578 closed defect (worksforme)
location misses TracUriRoot for webadmin plugin
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/web | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I am running a local instance of trac for testing, v0.11dev. Using webadmin from http://svn.edgewall.com/repos/trac/sandbox/webadmin
The relavent section of my httpd.conf (Apache 2.0) is
<Location /projects/myproject> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /home/jhammel/tmp/myproject PythonOption TracUriRoot /projects/myproject </Location>
The admin button will successfully take me to http://localhost/projects/myproject/admin
However, when I try to click on the links on the left, they take me to (for instance) http://localhost/admin/general/logging, which of course gives me a not found error.
Attachments (0)
Change History (7)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes, that fixes it. I'm not running behind any proxy or what not, but evidentally trac couldn't find the root on its own. Thanks.
comment:4 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm not sure whether the comment is really up to date. Need to check, I thought is was actually a mandatory parameter with the latest Trac release.
comment:5 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
(no code change → worksforme)
comment:6 by , 18 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Our trac is accessible from two different URLs, http://internal/trac (from inside the firewall) and http://external.companyname.com/trac (from outside).
I can't set base_url
to a fully qualified URL because of this. Can I get webadmin to run properly anyway? I couldn't the last time I tried a few days ago.
I think some other folks have a similar problem with http vs. https URLs for internal vs. external. Hope you don't mind my reopening this to make sure this issue isn't lost. Can base_url
be just the "path" part of a URL, omitting the scheme://host:port part?
comment:7 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
The URLs in the webadmin should be no different from the URLs generated by other Trac modules. It might be that some old version of the plugin didn't get this right, but I don't think it can still be the case.
Is the
base_url
parameter in yourtrac.ini
file defined as expected?