This happens because s.cgi queries HTTP_HOST environment variable to
calculate URL for that link.
To fix it, you can replace

 if ((http_host = getenv("HTTP_HOST")))
 {
  sprintf(host, "http://%s", http_host);
 }

with

host = "http://www.iowaoutdoors.org"

in the beginning of file "sc.cpp"
and recompile "s.cgi"

Another solution is that you can run "s.cgi" on http://www.iowaoutdoors.org
and "searchd" on the computer behind the firewall. You should put command to
s.htm
DaemonAddress IP:port
where IP is the IP address of computer where "searchd" is running and port
is the port number specified by Port command in "searchd.conf", default
12345

Alexander.

----- Original Message -----
From: "Tony Bibbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 03, 2001 12:58 AM
Subject: [aseek-users] Aspseek doesn't work quite right if you use Apache's
proxy features


> Here's my scenario.  I have a single external IP assigned to a router
> machine on my home network.  My website, www.iowaoutdoors.org, runs on
> that same router machine.  However it is a smaller box, pentium 133
> w/256MB of RAM.  When I setup Aspseek (search.iowaoutdoors.org), I
> decided to run in on a machine behind my firewall that has an internal
> IP because that machine is better (pentium II 233 with 256MB of RAM).  I
> then use Apache's proxy pass and proxy reverse directives within the
> virtual host declaration for search.iowaoutdoors.org to do the network
> address translation between the two boxes.  For the most part, Aspseek
> is working fine.  Searches pull up (quite fast) by my problem is the
> 'more results' feature is using the hostname for the internal box
> (oasis-internal) instead of the domain (search.iowaoutdoors.org).
>
> I've tried monkeying around with it a bit but couldn't get it working
> right.  Anyone have a suggestion how I can fix this?
>
> Thanks in advance,
>
> --Tony Bibbs

Reply via email to