On Fri, Aug 14, 2009 at 12:33 AM, Michael McDaniel <[email protected]>wrote:

>  QUESTION:
>  Is there any way to run fossil either directly or via CGI
>  script+webserver to access multiple repositories on the
>  same port, e.g.
>
>   http://my_webserver.com:8080/project_one
>   http://my_webserver.com:8080/project_two
>   ...
>   http://my_webserver.com:8080/project_N
>

If you run it as a CGI, they all go over your standard port. e.g.:

http://fossil.wanderinghorse.net/index.cgi

that's hosting several repos, but each must be wrapped by its own CGI script
which looks like:

[email protected] [~/www/www.fossil]# cat index.cgi
#!/home/wanderi1/bin/fossil
repository: /home/wanderi1/fossil/www.fossil.fsl
[email protected] [~/www/www.fossil]# cat repos/
byoo-ajax/    cgi-bin/      parse0x/      sigslot/      whbst/
whgc/
c11n/         c-snippets/   parsepp/      sqlite-stuff/ whdbg/
whio/
cgi3/         demo/         pegc/         v8-addons/    whefs/
whprintf/
[email protected] [~/www/www.fossil]# cat repos/parse0x/index.cgi
#!/home/wanderi1/bin/fossil
repository: /home/wanderi1/fossil/parse0x.fsl

If you're running fossil as-a server, rather than CGI, you cannot host
multiple repos on one port. Each server process is intimately connected to a
single repo, and the internal API is very much centered around that model.

i hope that helps.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to