RE: Google mini and RPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux