[fossil-users] Fwd: fossil server --basename ... apparent bug
Hi, I would expect, having started a server with basename (say) http://localhost/fossil to be able to proxy URLs of the form 'GET /fossil/logo ...' and have fossil strip the /fossil prefix (ie: basename) from the URL, and respond with the logo. I understand that --basename modifies the links generated by the fossil server, but I would expect the fossil server to strip away the basename before dispatching to the code which handles each URL. I think this is a bug. Colin. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Fwd: fossil server --basename ... apparent bug
(sorry for the funky formatting, Mailman) I wrote: I would expect, having started a server with basename (say) http://localhost/fossil to be able to proxy URLs of the form 'GET /fossil/logo ...' and have fossil strip the /fossil prefix (ie: basename) from the URL, and respond with the logo. To which Richard Hipp d...@sqlite.org replied: Why would you expect this? Well, it's more that I would expect the following to work: 1) fossil server --port 8080 --localhost --baseurl http://localhost:8080/fossil . 2) fossil server --port 8080 --localhost --baseurl http://localhost:8080/fossil H.fossil (given a cwd with an H.fossil in it) And I would expect them to work exactly as fossil server --port 8080 --localhost . does. What I find, instead, is that (2) produces a page with internal links which the fossil server itself can't follow, and that (1) produces only 404 pages. There is, as far as I can ascertain, no construction of --baseurl which will produce a workable website in conjunction with the fossil server verb. And what do you mean by the verb to proxy? By 'to proxy' I mean the act of 'going between', 'mediating between' or 'standing between' the subject and the object of another verb, in this case the verb 'to access' as in: 'I would like to access an HTML representation of an interaction with fossil by means of the HTTP protocol, without having to dedicate a port and ip address to the task'. I note that this common usage may not be consistent with the specialised usage of 'to proxy' as is found in the HTTP specs. Colin. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Fwd: fossil server --basename ... apparent bug
I see this is essentially a duplicate of this bug: http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg11051.html which was reported about 18 months ago, with a patch. On Thu, Sep 11, 2014 at 3:18 PM, Colin McCormack mcc...@gmail.com wrote: (sorry for the funky formatting, Mailman) I wrote: I would expect, having started a server with basename (say) http://localhost/fossil to be able to proxy URLs of the form 'GET /fossil/logo ...' and have fossil strip the /fossil prefix (ie: basename) from the URL, and respond with the logo. To which Richard Hipp d...@sqlite.org replied: Why would you expect this? Well, it's more that I would expect the following to work: 1) fossil server --port 8080 --localhost --baseurl http://localhost:8080/fossil . 2) fossil server --port 8080 --localhost --baseurl http://localhost:8080/fossil H.fossil (given a cwd with an H.fossil in it) And I would expect them to work exactly as fossil server --port 8080 --localhost . does. What I find, instead, is that (2) produces a page with internal links which the fossil server itself can't follow, and that (1) produces only 404 pages. There is, as far as I can ascertain, no construction of --baseurl which will produce a workable website in conjunction with the fossil server verb. And what do you mean by the verb to proxy? By 'to proxy' I mean the act of 'going between', 'mediating between' or 'standing between' the subject and the object of another verb, in this case the verb 'to access' as in: 'I would like to access an HTML representation of an interaction with fossil by means of the HTTP protocol, without having to dedicate a port and ip address to the task'. I note that this common usage may not be consistent with the specialised usage of 'to proxy' as is found in the HTTP specs. Colin. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users