Opened 18 years ago
Closed 18 years ago
#6678 closed defect (worksforme)
tracd gives 404 for static files pointed to by htdocs_location
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
htdocs_location = /P:/static
the file "P:/static/js/jquery.js" (and all others) exist
but tracd raises the following when accessing a page:
127.0.0.1 - - [20/Jan/2008 10:17:26] "GET /P:/static/js/jquery.js HTTP/1.1" 404
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Component: | tracd → general |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
Replying to ilias@lazaridis.com:
any hint / workaround here?
Sure - the htdocs_location is for URL, not file system location.
The idea is that you have a copy of static files somewhere, you make a special location in Apache (or whatever) that answer to a certain fixed URL - like /chrome pointing to your storage on disk. Then when you set /chrome in your htdocs_location, Trac will generate links that point to this external location instead of making the default /trac/project/chrome/common/file-type links. That location can can even be on another server.



any hint / workaround here?