In similar situations I have used ssh to tunnel a connection to the
appropriate port:
ssh -L 8080:localhost:9090 me@myserver
And then opening a browser pointing at localhost:8080 works fine (the proxy
is at the tcp level and not the http level, so geoserver gets the host:
header unchanged). This assumes an ssh service on the machine running
geoserver (which is configured to allow proxying) and an ssh client (default
on basically all linux and other unix-like systems, putty is a good choice
on windows) but may be useful to you.
--
David Winslow
OpenGeo - http://opengeo.org/
On Fri, Jan 28, 2011 at 10:47 AM, Justin Rowles (C) <
justin.row...@ordnancesurvey.co.uk> wrote:
> Thanks Justin. That’s spot on.
>
>
>
> There is a slight further problem – you can’t log in to change the proxy
> setting (from outside the proxy) without having the proxy setting set!
>
>
>
> Any idea which version last worked, and I will use an old one for the time
> being?
>
>
>
> Just.
>
>
> ------------------------------
>
> *From:* Justin Deoliveira [mailto:jdeol...@opengeo.org]
> *Sent:* 28 January 2011 15:42
> *To:* Justin Rowles (C)
> *Cc:* geoserver-users@lists.sourceforge.net
> *Subject:* Re: [Geoserver-users] Proxying Geoserver.
>
>
>
> Hi Justin,
>
> On Fri, Jan 28, 2011 at 5:34 AM, Justin Rowles (C) <
> justin.row...@ordnancesurvey.co.uk> wrote:
>
> Hi,
>
>
>
> I have installed a clean Geoserver 2.0.2 from the universal
> geoserver-2.0.2-bin.zip, edited jetty.xml to start it listening on port
> 9000, and then put ProxyPass and ProxyPassReverse settings into httpd.conf
> to access it externally on port 80.
>
>
>
> I can’t log in with admin/geoserver (although anything else gets me a
> failure page), and the OpenLayers map previews won’t work because they
> reference localhost:9000 in the urls.
>
>
>
> I can’t work out how to configure the geoserver instance to use the proxy
> url. I have found a commented out PROXY_PASS_URL in web.xml, but changing
> that didn’t help.
>
>
>
> Actually I found this recently as well. It is a bug filed here.
>
>
>
> http://jira.codehaus.org/browse/GEOS-4325
>
>
>
> However, you can also set it from the "Global Settings" page in the web ui.
> Look for proxy base url. When setting this geoserver will use this as the
> base url for any self referencing urls.
>
>
>
> -Justin
>
>
>
> Can anyone point me at a solution please?
>
>
>
> Justin.
>
> This email is only intended for the person to whom it is addressed and may
> contain confidential information. If you have received this email in error,
> please notify the sender and delete this email which must not be copied,
> distributed or disclosed to any other person.
>
>
>
> Unless stated otherwise, the contents of this email are personal to the
> writer and do not represent the official view of Ordnance Survey. Nor can any
> contract be formed on Ordnance Survey's behalf via email. We reserve the
> right to monitor emails and attachments without prior notice.
>
>
>
> Thank you for your cooperation.
>
>
>
> Ordnance Survey
>
> Adanac Drive
>
> Southampton SO16 0AS
>
> Tel: 08456 050505
>
> http://www.ordnancesurvey.co.uk
>
>
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
> --
> Justin Deoliveira
>
> OpenGeo - http://opengeo.org
>
> Enterprise support for open source geospatial.
>
>
>
> This email is only intended for the person to whom it is addressed and may
> contain confidential information. If you have received this email in error,
> please notify the sender and delete this email which must not be copied,
> distributed or disclosed to any other person.
>
> Unless stated otherwise, the contents of this email are personal to the
> writer and do not represent the official view of Ordnance Survey. Nor can any
> contract be formed on Ordnance Survey's behalf via email. We reserve the
> right to monitor emails and attachments without prior notice.
>
> Thank you for your cooperation.
>
> Ordnance Survey
> Adanac Drive
> Southampton SO16 0AS
> Tel: 08456 050505http://www.ordnancesurvey.co.uk
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users