Comment 6 for bug 683204

Revision history for this message
Zhang Zhuo (thinkdoggie) wrote :

I had a better solution for this issue.

The reason of this issue is that the handler used in Trac can support "symbolic link", but Apache can. Unfortunately, the file jquery.js which trac-wysiwyg required is a symbolic file stored in /usr/share/pyshared/trac/htdocs/js. If we can serve static resources of <project_url>/chrome/common/* by Apache, the trac-wysiwyg plugin will works.

Add following lines to Apache configuration file:

AliasMatch /projects/[^/]+/chrome/common/(.+) /usr/share/pyshared/trac/htdocs/$1

<Directory /usr/share/pyshared/trac/htdocs>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

This fix also works on multiple-project trac site.