Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#6678 closed defect (worksforme)

tracd gives 404 for static files pointed to by htdocs_location

Reported by: ilias@… 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 ilias@…, 16 years ago

any hint / workaround here?

comment:2 by osimons, 16 years ago

Component: tracdgeneral
Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.