Gilles Detillieux (email@example.com)
Mon, 1 Mar 1999 12:17:03 -0600 (CST)
According to firstname.lastname@example.org:
> Is there a way to make it "read" .shtml files through local
> filesystem access? I don't need it to process them while it's
> running, I just need it to read their text contents without going
> through Apache.
> My site contains a lot of includes and stuff that I don't necessarily
> want processed while indexing, so doing it through the local file
> system makes the most sense. The problem is that when ht://dig comes
> across a ".shtml" file during indexing, it says it can't read it and
> goes through Apache.
> Is there a way to make ht://dig see .shtml files the same as it does
> .html files?
For now, all you can do is modify Document::RetrieveLocal(), in
htdig/Document.cc, to explicitly test for .shtml, in addition to the
.html and .htm suffixes it currently tests for. It's a pretty easy fix,
even if you're not familiar with C or C++. Then, just recompile and
This fix isn't for everyone, though. Many users would probably prefer
to have SSI handling done by the http server for any .shtml files.
In the future, we hope to add support for a mime.types file, for
determining content-type of files from the local file system (or other
transport protocols). We're not there yet.
On my web server, I use XBitHack to turn on SSI processing on .html
files with the execute permission bit in the file mode. htdig doesn't
see this, and so it happily indexes all .html files from the local
file system, ignoring the few SSI tags I have in some of these files.
That works for me.
-- Gilles R. Detillieux E-mail: <email@example.com> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 ------------------------------------ To unsubscribe from the htdig mailing list, send a message to firstname.lastname@example.org containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Thu Mar 04 1999 - 09:09:18 PST