Volker Wysk <v@volker> wrote:
> [ requesting http://localhost:8080/search/start4.html results in
> "404 WWWOFFLE Not Searched" ]
>
> I've traced the problem further, to misc.c:206, in SplitURL():
>
> if(Url->host[i]==':')
> if(atoi(&Url->host[i+1])==(Url->Protocol?Url->Protocol->defport:80))
> Url->host[i]=0;
>
> if(!Url->local && IsLocalHost(Url->host,1) && Url->Protocol &&
> Url->Protocol==&Protocols[0])
> ...
>
> Here, it is checked if the port number is right for the host+port being
> local. Url->Protocol->defport is 80, but the port, where WWWOffle actually
> listens, is 8080. (80 is Apache). Consequently, localhost:8080 does not
> get identified as local. http-port is specified as 8080, in wwwoffle.conf.
>
> Seems like the http-port setting does not make it into Protocols[0], or
> so...
If this was where the problem was then you would not be able to access
any files on the localhost:8080 server.
The code does not do what you think, it actually does this:
1) Check for URLs like http://foo:80/ and change the host from
'foo:80' to 'foo'. Also ftp://foo:21/ is done the same.
2) Replace the hostname with the canonical localhost name if the
hostname matches one of the hostnames in the LocalHost section of
the config file.
This has nothing to do with the checking of the hostname that is
performed in wwwoffles.c that your serach engine is not triggering.
I recommend that you run 'wwwoffled -d 6 -c wwwoffle.conf' and see
what the search engine is really requesting.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.6/user.html