Axel Thimm wrote:
Hi,
On Sat, Jan 07, 2006 at 12:04:08AM -0500, Matthew Gillen wrote:
Hi Axel,
Sorry, I wasn't clear about which part I was emphasizing:
I'm assuming you have this in your apache config:
Alias /trac/ /usr/share/trac/htdocs/
Here's the part I meant for you to look at:
# Link the static files into /trac-static/
# You'll need to change the trac.ini to point to /trac-static/ instead
# of /trac/
Alias /trac-static/ /usr/share/trac/htdocs/
Your Alias directive needs to change (to something that's not "/trac/").
If you change that (and the trac.ini file as the comment suggests),
apache will cease to be confused. The problem is that you have an Alias
and a ScripAlias/Location directive both configured for the "/trac/" URL.
Does that make more sense/fix your problem?
what I have is
Alias /trac-static "/usr/share/trac/htdocs/"
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
<Location "/trac">
...
And trac.ini has
htdocs_location = /trac-static/
So, it all looks OK, or not? And this is what the documentation
suggests to do.
Did you have the same kind of confusion, e.g. images being loaded on
every second reload?
Well, I did see really strange things (not unlike what you describe)
when I had the Alias and Location directives for the same path. The
ScriptAlias might be the same issue. Here's my config on my fedora 4 box:
------------------------------------
Alias /trac /usr/share/trac/htdocs/
<Directory "/usr/share/trac/htdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Location /tracsrv>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracUriRoot "/tracsrv"
PythonOption TracEnvParentDir /path/to/tracenv
</Location>
------------------------------------
So with this config, I just access:
myserver.com/tracsrv/
And I don't use a ScriptAlias directive at all. If your Location
directive looks like mine (ie you're using mod_python), the solution to
your problem might be as simple as just removing the ScriptAlias
directive completely.
--Matt
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac