I would install static pages somewhere under www (as you did), but the Trac projects outside /www, for example /var/trac ...
Apache does not serve Trac web pages (but the static ones). It is the Trac engine, with the help of mod_python, that serves those dynamic web pages. There is no need for Trac projects to be located within a subtree of the Apache DocumentRoot dir. Yes, you can move your Trac projects without the need for reinstalling. Use the mv command, and update your Apache config file and trac.ini files accordingly (then restart Apache) HTH, Manu On 8/6/07, Hamid Majidy <[EMAIL PROTECTED]> wrote: > > Thanks, Manu, for your direction. That sure did the trick. Thanks also for > your security recommendation. What's recommended application tree, given an > apache DocumentRoot of /www? Will this work well? > > /trac - trac static pages (with bin, lib, share dir's and VERSION file) > /www/Projects - pages for all projects > /www/Projects/MyProject - pages for MyProject within projects > > Can I just move the Trac static and MyProject area without re-installing? > Much appreciated. > > Thanks, > Hamid. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Emmanuel Blot > Sent: Monday, August 06, 2007 10:33 AM > To: [email protected] > Subject: [Trac] Re: Start Page Resources Not Found > > > FWIW, your settings are potentially unsecure: you've installed your > Trac environment within a subtree that can be served by Apache. > Usually a bad idea, as someone could access your trac.ini file or the > whole DB. > > If everything under /www can be served by Apache as static web pages, > you'd better move your Trac environment(s) out of it. > > Try setting > htdocs_location = /trac/share/trac/htdocs > > anyway, I would suggest you review the whole configuration. > > Cheers, > Manu > > On 8/6/07, Hamid Majidy <[EMAIL PROTECTED]> wrote: > > > > Thanks for the response Manu. From httpd.conf: > > DocumentRoot "/www" > > > > <Directory /www/trac/MyProject> > > SetHandler mod_python > > PythonInterpreter main_interpreter > > PythonHandler trac.web.modpython_frontend > > PythonOption TracEnv /www/trac/MyProject > > PythonDebug on > > </Directory> > > > > From /www/trac/MyProject/conf/trac.ini: > > htdocs_location = > > > > I don't recall the above line from the instructions. Also, the start page > > looks find when opened from another link. > > > > Regards, > > Hamid. > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of Emmanuel Blot > > Sent: Monday, August 06, 2007 7:09 AM > > To: [email protected] > > Subject: [Trac] Re: Start Page Resources Not Found > > > > > > > Can anyone see the problem? > > > > You need to add a rule to your Apache config if you want Apache to > > serve the static files that comes with Trac - so that Apache knows > > that static files are stored in /www/trac/share/trac/htdocs. Moreover, > > the /trac/MyProject part of the URL seems weird, what's your > > "htdocs_location" parameter value (from trac.ini) ? > > > > Cheers, > > Manu > > > > > > > > > > > > > > -- > Manu > > > > > > -- Manu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
