Hi,
I am trying to run htsearch under chrooted Apache on Redhat7.1. That's what I have done:
- built an index with htdig outside of jail, setting database directory to /jail/apache/htdigdb/. /jail/apache is where I chroot my Apache server to.
- put database_dir: /htdigdb in htdig.conf file within a jail.
- copied a couple of libraries htsearch needed into the jail.
Now, when I do a search connecting to (jailed) apache server, search comes up with correct results. The title of the pages looks good but first strings from the document are all garbage. Here is how it looks like - the funny characters there is exactly what I see.
Document Title - Somefile
xœ}W]sÛ6ü+÷”´©”¯‡ÎÄyh[‰Ý©-U”Çí#Dž(Ä À å×w ¾l¥%‚GÜÞÞî&-\éËhv{sG×:Dç·ô°ÚöK¿ÑgUj££æpüuÜ´Æm¶‘.;ïåó· IËVÛ:еk˜^Ôñãi‚´rôì]:ߨ¨Í÷În–Ÿ2\Fï¬.͹\á‹Vv·q¡#Óðù>Mî绨á¾ÂáIÃãÒ†?ø?ÛO‹´£Š¤C5j[£Ëô¤ìùŸTÊü§¶áìnÅÍ|L7wWã¿ÏÞ¾ž<Ð|BŸîÿÁ.W¬ {úÓ!‡óXøÔmé³w;Ø3;<\æ/ º?à;ÞÐÔ»ª ...
http://my.web.server/subdir/somefile.html , 15797 bytes
The issue is only with displaying search results, everything else is correct i.e. it correctly finds documents containing the word(s) I am searching for, links work, etc.
If I run Apache and htsearch unjailed using the same database, I am getting correct display. Obviously, something is missing in jailed environment.
I do have /usr/lib/locale directory with all subdirectories and /usr/bin/locale in my jail. I am not sure if it even has anything to do with the problem, I am not trying to index non-English documents anyway.
Any thoughts?
Thanks a lot!!

