Author: Alexander Barkov
Email: [EMAIL PROTECTED]
Message:
> I was wandering. If I want to query my database from a remote server,
> then how do I get cache data over the query??
>
> So for example,
> ServerA is webserver with index.html
> ServerB is Search server with all sql/cache data stored on it.
>
> how do I get ServerA to query ServerB for words?
There is a solution:
1. install apache on ServerB
2. configure Apache on ServerA to consider some path, for example
http://ServerA/search/, as a remote data from ServerB. You have
to add mod_proxy, as far as I remember it is not built by default.
Then add something like this into httpd.conf on ServerA:
ProxyRequests On
ProxyPass /search/ http://ServerB/search/
ProxyPassReverse /search/ http://ServerB/search/
3. Put search.cgi into /search/ directory of ServerB
After that all requests to http://ServerA/search/search.cgi will
cause ServerA to do request to http://ServerB/search/search.cgi
and return it's result to client.
This is known tecknology to distribute web server between several
machines and keep all resources available under the same
server name, i.e. http://ServerA/ in your case. Note that all machines
except ServerA may be hidden in internal network which is not
available directly from internet or protected by firewalls.
Reply: <http://search.mnogo.ru/board/message.php?id=2023>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]