Hi,
For a demo project , I've installed the following on Fedora
1. Package trac-0.11.3-4.fc11.noarch
2. Package subversion-1.6.1-5.fc11.i586
(Two additional packages python-genshi and python-pygments were also
installed as dependency with Trac)
To run Trac using apache web server and mod_python, I've added the
following lines to trac.conf file
<IfModule mod_python.c>
<Location /trac/demo>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /srv/trac/demo
SetEnv PYTHON_EGG_CACHE /tmp
PythonInterpreter trac
AuthType Basic
AuthName "demo"
AuthUserFile /opt/svn/svn-demo.htpasswd
Require valid-user
</Location>
</IfModule>
<IfModule mod_dav.c>
<Location /svn/demo>
DAV svn
SVNPath /srv/svn/demo
</Location>
</IfModule>
By default, on httpd.conf, the documentroot is /var/www/html and that
value I did not change.
Now when I try to access trac with the url "http://host.com/trac/
demo", it does not load the images and css and gives the following
error on the page "No handler could be found for demo".
Then I manually created subfolders 'trac' and 'demo' under /var/www/
html and now the error is gone but its still not loading the css and
image files. But in the url if I put 'http://host.com/trac/demo/
abc' (or any text in place of abc), the page loads properly.
So, my questions are
1. why do I need to manually create subfolders under /var/www/html
where I've explicitly defined the location of my project under
<Location> ? In that case what change should I made in the conf file
so that I dont have to create the folders manually? (I used alias in
httpd.conf but it didn't work).
2. what do I need to change in the configuration file if I want to
access trac demo project with the url 'http://host.com/trac/demo'
instead of 'http://host.com/trac/demo/abc'?
(Note : when I put 'http://host.com/trac/demo/abc/xyz' then its giving
404 error though).
Thanks,
soumo.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---