> Fixed.

Thanks!

> Now with two users, maybe it is time to separate the
> althttpd.c code and documentation out into a separate repository
> (rather than commingling it with the SQLite documentation), get a
> domain name, and set up a website just for althttpd.c :-)

Sounds good to me, though maybe you should wait for another user who
actually knows what they are doing.

> Which of these URLs do *you* think looks better?
>
>     https://wapp.tcl.tk/home/doc/trunk/README.md
>     https://wapp.tcl.tk/index.html/doc/trunk/README.md
>     https://wapp.tcl.tk/index.cgi/doc/trunk/README.md

Definitely the first, though I must admit I'm still struggling a bit
with the mechanics.  Here are a few of my tests with what I expected
(wanted?) and the actual results, my initial expectations were based
on the commit comments not the code itself:

/home is a directory (not a cgi script) but contains index.cgi.  Root
is www actual path is ~/www/default.website/home/index.cgi

Test #1:
Browser URL: http://127.0.0.1:8080
Expected: cgi output from /home/index.cgi
Actual: 404 The document / is not available on this server

Test #2:
Browser URL: http://127.0.0.1:8080/home (no trailing slash)
Expected: cgi output from /home/index.cgi, also expected browser url
bar to continue to just display http://127.0.0.1:8080/home
Actual: cgi output delivered as expected though url bar displays
http://127.0.0.1:8080/home/index.cgi - first response is a 302
redirect to index.cgi

Test #3:
Browser URL: http://127.0.0.1:8080/home/ (with trailing slash)
Expected: cgi output from /home/index.cgi, also expected browser url
bar to continue to just display http://127.0.0.1:8080/home/
Actual: same as expected, cgi output delivered as expected and url bar
continues to only display http://127.0.0.1:8080/home/ first response
is no longer a redirect

Test #4:
Browser URL: http://127.0.0.1:8080/home/some/extra/path/info
Expected: Not really sure why, but I expected the normal output of
/home/index.cgi and the rest to be put in the excess path variable
Actual: 404

Test #5:
Browser URL: http://127.0.0.1:8080/home/index.cgi/some/extra/path/info/
Expected: same as test 4
Actual: Unstyled output of /home/index.cgi delivered.  Firefox
downloads my stylesheets but reports they are of type html rather than
css.  Not sure what's going on with this test.

I'm working on a personal project which (however misguided) uses
symlinking to provide site wide templating that can also be overridden
on a per page basis.  It was an old idea of mine that I've tried to
implement a couple of times over the years with varying degrees of
succes using a typical LAMP stack.  althttpd.c is a breath of fresh
air and the catalyst I needed to revisit the project.  The virtual
hosts, dash prefixed hidden directories, cgi and static support are
all killer features that I'm using in the design.  Anyway, I'm not
expecting a lengthy response - just providing some feedback.  I'd like
to use the unmodified source of althttpd.c so I will continue testing
and either work around my expected behaviour or try to modify the code
as a last resort.

Thanks,
Carl
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to