Synopsis: I am trying to use a CGI/1.1 webserver to serve fossil repositories. The pages do not display properly. Via 'view source' from the browser, I see the extra word "index" inserted into paths.
--- Long version: Per the synopsis, fossil pages are not display properly with the webserver I am using. [FYI, httpd server included in Erlang/OTP] The script I am using, x.cgi, contains #!/usr/local/bin/fossil repository: /home/fossil/repositories/erlview.fossil.old I have run the same script from a different webserver which displays as expected. I did a 'view source' from the browser in both cases. The difference between the two generated html is that for the incorrectly displayed page, all 'href' and 'img src' links contain the word "index" between the script name and the next word (e.g. style.css, home, logo, etc.). e.g. GOOD html <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="https://delora.autosys.us/cgi/x.cgi/timeline.rss"> <link rel="stylesheet" href="https://delora.autosys.us/cgi/x.cgi/style.css" type="text/css" media="screen"> BAD html <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://delora.autosys.us:9999/cgi/x.cgi/index/timeline.rss"> <link rel="stylesheet" href="http://delora.autosys.us:9999/cgi/x.cgi/index/style.css" type="text/css" media="screen"> Of course, with the word "index" in there, the path for the style sheet is incorrect hence the poorly displayed page. This is for the "home" page. If I click on one of the links, then that name also gets inserted into the path. So, where the proper path should have been /cgi/x.cgi/brlist it would be /cgi/x.cgi/index/brlist Here are the CGI environment variables created by the webserver for which the BAD html is generated: [{"SERVER_SOFTWARE","inets/develop"}, {"SERVER_NAME","delora"}, {"GATEWAY_INTERFACE","CGI/1.1"}, {"SERVER_PROTOCOL","HTTP/1.1"}, {"SERVER_PORT","9999"}, {"REQUEST_METHOD","GET"}, {"REMOTE_ADDR","0:0:0:0:0:FFFF:7F00:1"}, {"SCRIPT_NAME","/cgi/x.cgi"}, {"HTTP_HOST","delora.autosys.us:9999"}, {"HTTP_USER_AGENT", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15"}, {"HTTP_ACCEPT", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"HTTP_ACCEPT_LANGUAGE","en,es;q=0.8,en-us;q=0.5,es-es;q=0.3"}, {"HTTP_ACCEPT_ENCODING","gzip,deflate"}, {"HTTP_ACCEPT_CHARSET","ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, {"HTTP_KEEP_ALIVE","300"}, {"HTTP_CONNECTION","keep-alive"}, {"QUERY_STRING",[]}] Could it be the case that one of the above variables is causing fossil to insert the spurious "index" (or tag names) in paths ? Or perhaps there is a CGI variable missing ? I have attached the 'view source' html files good.html and bad.html in case anyone would like to see the entire files. They are from the "home" page when first executing the x.cgi script. I can change or add CGI environment variables to the webserver if that is the solution. Maybe I have uncovered an obscure bug in fossil. Any suggestions (other than "use a different webserver") are welcome. ~Michael -- Michael McDaniel Portland, Oregon, USA http://trip.autosys.usTitle: Erlang view server: Erlang view server
Erlang view server
Global copy at http://github.com/mmcdanie/erlview
This is an Erlang view server for CouchDB, a document database.
Title: Erlang view server: Erlang view server
Erlang view server
Global copy at http://github.com/mmcdanie/erlview
This is an Erlang view server for CouchDB, a document database.
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users