httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sniederme...@cob.org
Subject [users@httpd] RE: Google mini and RPS
Date Sat, 09 Dec 2006 00:03:12 GMT

In a previous post, I asked for assistance in getting a Google Mini to work
behind an Apache server set up to reverse proxy.  At first I thought the
answer would be found in using rewrite directives. However, after working
on it, I believe I found a simple solution.  It may be a little off topic,
but might help anyone else trying to accomplish the same task.

1) Select a subdirectory to reserve for searching on your website (e.g.
/search)
2) Set up your reverse proxy server with the following directives (where
192.168.1.1 is the IP of your Google Mini):

      proxypass /search http://192.168.1.1
      proxypassreverse /search http://192.168.1.1

3) Log in to the Google Mini http://192.168.1.1:8000
4) Go to "Configure Serving" tab
5) Select "Output Format" from the top menu
6) Set your options using the page layout helper first (this simplifies the
next step)
7) Customize the XSLT using the Style Sheet Editor (once you do this, you
won't be able to use the layout helper):

Update any link directives to include the /search/ before them.  Here's an
example line:

Before:  <xsl:variable name="help_url">/basics.html</xsl:variable>

After: <xsl:variable name="help_url">/search/basics.html</xsl:variable>

Also update all form method="get" action="

Before:<form method="get" action="/search"

After:  <form method="get" action="/search/search"

____________________________
Steven Niedermeyer
Bellingham, WA


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message