On 11/23/15, Warren Young <w...@etr-usa.com> wrote: > > I was curious, so I looked into it. The Fossil docs only talk about nginx, > but I’m more familiar with name-based virtual hosting on Apache, so I worked > out how to configure it:
That's all well and good, but Joerg is right - it would be convenient to be able to specify the root of the repository in a hyperlink. I've pondered making that possible with some bit of magic like "[$ROOT/wcontent]" or "<a href='$ROOT/wcontent'>". But it seems hackish. > > NameVirtualHost prj1.yourcompany.private:80 > <VirtualHost prj1.yourcompany.private:80> > ServerAdmin webmaster@yourcompany.private > ServerName prj1 > ServerAlias prj1 > ProxyPass / scgi://localhost:4000/ > SetEnvIf Request_URI . proxy-scgi-pathinfo > </VirtualHost> > > Then, set up the back-end server via: > > $ fossil server /path/to/prj1.fossil --scgi --localhost --port 4000 & > > Having done this, visiting http://prj1 will transparently show the Fossil UI > for prj1.fossil. > > The point of this scheme is that you can run one fossil instance for each > repository you want to serve, using a different SCGI port number for each, > mapping each SCGI port to an alias on your web server. Each of those > name-based virtual hosts will present the corresponding Fossil UI at the > root of the URL hierarchy, so you won’t run into local/remote discrepancies > like the one you found. > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- D. Richard Hipp d...@sqlite.org _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users