Sharepoint Foundation 2010 wrong search URL behind reverse proxy
I have a Microsoft Sharepoint Foundation 2010 single server farm behind a
reverse proxy (Microsoft TMG).
The internal URL is http://intranet/ and the external address is
https://access.mysite.com/. Requests to the external address are forwarded
by the TMG server to the internal http://intranet/ address.
Browsing of the sites and content all works, but the site search does not
work when it it accessed at the external address. In such a case, when you
hit enter to search (or the search button), the browser is sent to
http://intranet/_layouts/searchresults.aspx instead of the equivalent URL
on the external address.
How can I fix this with the minimum of changes? Do I have to set up the
alternate access mappings and forward the original URL or is there another
way?