(Besides Paul, who's busy?) I just need one question answered: I keep reading the docs, and given the old traditional /var/www I get that part of trac should be installed in /var/www/trac/<myproj> (I think); what I can't figure out is whether there is *anything* under the document root, that is, /var/www/html/trac/<myproject>. Anyone have a clue? Do I even need it as a placeholder, or does anything actually go in there? mark
On Wed, Mar 12, 2014 at 1:02 PM, <m.roth at 5-cent.us> wrote:> (Besides Paul, who's busy?) > > I just need one question answered: I keep reading the docs, and given the > old traditional > /var/www > I get that part of trac should be installed in /var/www/trac/<myproj> (I > think); what I can't figure out is whether there is *anything* under the > document root, that is, /var/www/html/trac/<myproject>. > > Anyone have a clue? Do I even need it as a placeholder, or does anything > actually go in there?Don't know anything about this specific case, but one thing that will get you is a redirect from apache if you omit the trailing / in the URL from the browser. That is, if the apache config has a handler for /trac/ but the user asks for http://server_name/trac, having that directory under your default DocumentRoot (actually probably /var/www/html/) will make apache redirect the browser to http://server_name/trac/ and make everything else work. -- Les Mikesell lesmikesell at gmail.com
On 13/03/14 5:02 AM, m.roth at 5-cent.us wrote:> (Besides Paul, who's busy?) > > I just need one question answered: I keep reading the docs, and given the > old traditional > /var/www > I get that part of trac should be installed in /var/www/trac/<myproj> (I > think); what I can't figure out is whether there is *anything* under the > document root, that is, /var/www/html/trac/<myproject>. > > Anyone have a clue? Do I even need it as a placeholder, or does anything > actually go in there?Hi Mark, I've got a couple of centos 6 VMs running trac and subversion. One is a standalone single project and the other runs a multi-site install. trac was installed from EPEL. For the single site install I've got a few things in /var/www/html: [root at develop www]# ls html/ favicon.ico favicon.png svnindex.css svnindex.xsl [root at develop www]# But they are mainly convenience formatting for subversion browsing. Inside /var/www/trac is all the trac stuff, which was created via trac-admin. Slightly different for the multi-site install in that the folder structure has an additional level: [root at develop www]# pwd /var/www [root at develop www]# ls trac hydra mmm tuflowJobHist wma_admin [root at develop www]# In this case, trac-admin creates the projects within the sub-folders. but the contents of /var/www are the same as above. I also split out some of the static htdocs from trac to let apache cache them, so /var/www becomes: [root at develop www]# ls cgi-bin error html icons lost+found svn trac trac-static [root at develop www]# For both cases /etc/httpd/conf.d/trac.conf handles redirects, aliases, caching, cgi etc. With nothing in /var/www. Hope this helps, -pete -- Peter Brady Email: pdbrady at ans.com.au Skype: pbrady77 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 946 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20140313/277c590f/attachment-0002.sig>
Peter Brady wrote:> On 13/03/14 5:02 AM, m.roth at 5-cent.us wrote: >> (Besides Paul, who's busy?) >> >> I just need one question answered: I keep reading the docs, and given >> the >> old traditional >> /var/www >> I get that part of trac should be installed in /var/www/trac/<myproj> (I >> think); what I can't figure out is whether there is *anything* under the >> document root, that is, /var/www/html/trac/<myproject>. >> >> Anyone have a clue? Do I even need it as a placeholder, or does anything >> actually go in there? > > Hi Mark, > > I've got a couple of centos 6 VMs running trac and subversion. One is a > standalone single project and the other runs a multi-site install. trac > was installed from EPEL. > > For the single site install I've got a few things in /var/www/html: > > [root at develop www]# ls html/<snip> Thanks, Peter. Between you and Paul, and, of course, much googling, I've got it working. I was completely thrown off by, basically, *NOTHING* being under the DocumentRoot. Oh, and them having htdocs *under* their non-doc-root stuff. Installing the agilo-plugin was easy (well, I'll know when my user gets going). Now shutting up selinux.... And no, what I found was *wrong*, it was telling you to use chcon, which does *not* last across reboots. semanage (bleah!).... mark