[Geoserver-users] Port forwarding to geoserver [Sec=Unclassified]

I had started writing an FAQ, confident that it was working - but after a closer look I found that only the links to the getCapabilities requests (and the URLs in them) were updated to the setting in PROXY_BASE_URL. All the others on the front-end are not using the setting.

I also tried Eduin's idea, which should work, but doesn't - I think it must be an issue with apache/sed on windows.

Any other ideas? If not, I may just go in and update the geoserver code to use the PROXY_BASE_URL setting everywhere, unless it's a trivial fix and someone wants to drop it in for me?

Miles

-----Original Message-----
From: Chris Holmes [mailto:cholmes@anonymised.com]
Sent: Wednesday, 27 September 2006 9:08 AM
To: Miles Jordan
Subject: Re: [Geoserver-users] Port forwarding to geoserver
[Sec=Unclassified]

If you have a spot of time would you mind documenting it on the wiki?
Perhaps as a FAQ question?

thanks,

Chris

Miles Jordan wrote:
> Ah that's great Chris - just what I was looking for. Thanks
Eduin for
> your help also.
>
> Miles
>
>
> -----Original Message-----
> From: Chris Holmes [mailto:cholmes@anonymised.com]
> Sent: Wed 27/09/2006 00:20
> To: Miles Jordan
> Cc: Eduin Carrillo; Geoserver-users@lists.sourceforge.net
> Subject: Re: [Geoserver-users] Port forwarding to geoserver
> [Sec=Unclassified]
>
> We also have a fix in GeoServer that might work for you. It's for
> being behind a proxy, but I believe it should also pick up the port.
>
> You just add the following to your web.xml (sometime need
to get it in
> the gui).
>
> <context-param>
> <param-name>PROXY_BASE_URL</param-name>
> <param-value>http://wms.externalhost.com/&lt;/param\-value&gt;
> </context-param>
>
> See: http://jira.codehaus.org/browse/GEOS-598 committed for 1.3.2
>
> best regards,
>
> Chris
>
> Eduin Carrillo wrote:
> > You can use apache ext_filter
> > module(http://httpd.apache.org/docs/2.2/mod/mod_ext_filter.html)
> >
> > In this sample we use sed to change the word "Satellite" with
> "My_Satellite":
> >
> >
> > LoadModule ext_filter_module modules/mod_ext_filter.so
> > ExtFilterDefine fixtext mode=output intype=text/html
cmd="/bin/sed
> > s/Satellite/My_Satellite/g"
> >
> > <VirtualHost *:80>
> > #Do filtering
> > SetOutputFilter fixtext
> >
> > ServerName geoserver.example.com
> > ServerAdmin geoserver@anonymised.com
> > ProxyPreserveHost On
> > ProxyPass / http://realgeoserver.example.com:8080/
> > ProxyPassReverse / http://realgeoserver.example.com:8080
> >
> > </VirtualHost>
> >
> >
> > Eduin
> >
> >
> > --- Miles Jordan <Miles.Jordan@anonymised.com> escribió:
> >
> >> Morning!
> >>
> >> I have another small issue here with regard to port
forwarding with
> >> Apache. I have GS running on port 8300 under JRun4.
This port is not
> >> accessible through the firewall, however all external
requests to port
> >> 80 are forwarded to port 8300 via Apache, which makes geoserver
> >> available to public view on the default http port for
this machine.
> >>
> >> The only issue is that all the links on the GS frontend
continue to
> >> point to port 8300, so if one clicks on a link, it
won't work. All the
> >> links work for me of course because I'm not on the
other side of the
> >> firewall! Every link also works as expected if the port
number is
> >> manually removed.
> >>
> >> I know there were some proposed gui changes - shall I
file this as a
> >> minor bug?
> >>
> >>
> >>
> >> Miles Jordan
> >>
> >> BlueNet Officer & Applications Developer
> >> Data Centre
> >> The Australian Government Antarctic Division
> >> 203 Channel Hwy, Kingston TAS 7053
> >>
> >> [p] +61 (0) 3 6232 3486
> >> [m] +61 (0) 424 879 668
> >> [e] miles.jordan@anonymised.com
> >> [w] http://www.aad.gov.au
> >>
>
______________________________________________________________
_____________
> >>
> >> Australian Antarctic Division - Commonwealth of Australia
> >> IMPORTANT: This transmission is intended for the
addressee only. If
> you are
> >> not the
> >> intended recipient, you are notified that use or
dissemination of this
> >> communication is
> >> strictly prohibited by Commonwealth law. If you have
received this
> >> transmission in error,
> >> please notify the sender immediately by e-mail or by
telephoning +61
> 3 6232
> >> 3209 and
> >> DELETE the message.
> >> Visit our web site at http://www.aad.gov.au/
> >>
>
______________________________________________________________
_____________
> >>
> >
> >
> >
> > __________________________________________________
> > Correo Yahoo!
> > Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> > Regístrate ya - http://correo.espanol.yahoo.com/
> >
> >
--------------------------------------------------------------
-----------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the
chance to
> share your
> > opinions on IT & business topics through brief surveys
-- and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge

&CID=DEVDEV

<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV&gt;
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

!DSPAM:1003,4519b28d21341116498154!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________