Opened 17 years ago
Closed 17 years ago
#6286 closed defect (duplicate)
Trac uses direct redirection containing current host name when creating/modifying tickets
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.10.4 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Our Trac-server resides in the Intranet and is not available (or even seen) from Internet directly.
We have configured a redirect-proxy for the Trac-server on one of our Internet-accessible web-servers using Apache 2.2 mod_proxy.
Thus, http://internet.server/trac requests are goes to http://trac.intranet.server/trac.
It is mostly works perfectly, but we've noticed recently that when a person files a ticket on our Internet (external) server, after press ing "Submit ticket" he gets a blank browser window (or it just waits for data), and address field's URL changes to the Intranet (internal), containing a host name which is not available from the Internet.
The question is, is that a bug in our configuration, our setup, our approach or in the Trac's implementation?
P.S. We're using Apache + mod_python for hosting Trac, in the Intranet.
If anything it is a bug in HTTP. Redirects must be absolute URLs. For more information look at one of the many tickets about base_url being harmful.