namazu-users-en
[Top] [All Lists]

[Namazu-users-en] Re: [ (can't open the index) ]] (Solved!)

2007-04-09 00:52:19
rex wrote:
 
Since I was unable to make namazu.cgi find the index files no matter
what I set idxname= to, there may be a bug in namazu.cgi. If the web
search works in version 2.0.17 for anyone with the index files NOT in
the default location (/usr/local/var/namazu/index/) then there isn't a
bug. If it DOES work for someone, please post the relevant section of
your index.html file. Mine (which does not work) is:

There is no such bug. 
It writes repeatedly. 

It is ".namazurc" that "namazu.cgi" reads.
("namazurc" is not read. )

You should make ".namazurc". 
(# mv namazurc .namazurc)

I) When the index is only one

I-a) .namazurc contains:
Index     /srv/www/htdocs/ffarchive
Template  /srv/www/htdocs/ffarchive
Replace   /srv/www/htdocs/ffarchive http://localhost/ffarchive


I-b) NMZ.head.xxx :

The line of "Idxname" is deleted. 

<input type="hidden" name="idxname" value="ffarchive">


II) When you use two or more index file.

I-a) .namazurc contains:
Index     /srv/www/htdocs
Template  /srv/www/htdocs/ffarchive
Replace   /srv/www/htdocs/ffarchive http://localhost/ffarchive

I-b) NMZ.head.xxx :

 ex) Each index is specified. 

<input type="hidden" name="idxname" value="ffarchive">
<input type="hidden" name="idxname" value="foo">
<input type="hidden" name="idxname" value="bar">


* By the way, Though "localhost" is used, Please set a correct host
  name. 
* The index file need not be opened to the public with the Web server. 
-- 
=====================================================================
TADAMASA TERANISHI  yw3t-trns(_at_)asahi-net(_dot_)or(_dot_)jp
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E

_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en