[Geoserver-users] GeoServer behind a HTTP-Proxy

Hello,

we must solve the following connection to a WMS:

[WMS (Internet)] ---- [HTTP-Proxy] ---- [GeoServer] ---- [Clients]

How can we tell GeoServer to use the HTTP-Proxy to connect to the internet WMS server?

Yours Rüdiger

Hello Rüdiger,

very easy: Admin login ---> Global --> 4th input field is: 'Proxy Base URL'.
Enter your proxy sever and you're done.

It kills your 'Layer Preview' though as the proxy doesn't know about
Openlayers.

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-behind-a-HTTP-Proxy-tp5069332p5069513.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hello,

I used the following URL as the getCapabilities URL:

  http://geodaten.bayern.de/ogc/ogc_dop200_oa.cgi?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities

The http-proxy is configured as:

  http://<proxyname>:<proxyport>

But I get "connection refused" messaged while creating a WMS data source.

Opening the WMS URL with firefox and IE works through the proxy.

Any ideas?

Yours Rüdiger

-----Ursprüngliche Nachricht-----
Von: cmaul [mailto:Christian.Maul@…4794…]
Gesendet: Dienstag, 30. Juli 2013 01:54
An: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] GeoServer behind a HTTP-Proxy

Hello Rüdiger,

very easy: Admin login ---> Global --> 4th input field is: 'Proxy Base URL'.
Enter your proxy sever and you're done.

It kills your 'Layer Preview' though as the proxy doesn't know about Openlayers.

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment Level13, Marland House, 570 Bourke Street Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-behind-a-HTTP-Proxy-tp5069332p5069513.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Start up your server with -Dhttp.proxyHost= and -Dhttp.proxyPort= and it should all work fine.

Ian

···

On 30 July 2013 10:42, Gubler, Ruediger <rgubler@anonymised.com> wrote:

Hello,

I used the following URL as the getCapabilities URL:

http://geodaten.bayern.de/ogc/ogc_dop200_oa.cgi?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities

The http-proxy is configured as:

http://:

But I get “connection refused” messaged while creating a WMS data source.

Opening the WMS URL with firefox and IE works through the proxy.

Any ideas?

Yours Rüdiger

-----Ursprüngliche Nachricht-----
Von: cmaul [mailto:Christian.Maul@anonymised.com]
Gesendet: Dienstag, 30. Juli 2013 01:54
An: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] GeoServer behind a HTTP-Proxy

Hello Rüdiger,

very easy: Admin login —> Global → 4th input field is: ‘Proxy Base URL’.
Enter your proxy sever and you’re done.

It kills your ‘Layer Preview’ though as the proxy doesn’t know about Openlayers.

Cheers

Christian



Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment Level13, Marland House, 570 Bourke Street Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813

View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-behind-a-HTTP-Proxy-tp5069332p5069513.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Get your SQL database under version control now!
Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Ian Turton

On Tue, Jul 30, 2013 at 12:12 PM, Ian Turton <ijturton@anonymised.com> wrote:

Start up your server with -Dhttp.proxyHost=<proxyname> and
-Dhttp.proxyPort=<proxyport> and it should all work fine.

Two different types of proxies, two different configurations.
Ian is giving you the solution for a forward proxy that GeoServer might
needs to access the internet itself.
Christian is giving you directions for a reverse proxy that you might be
using to expose GeoServer to the internet,
giving it a different hostname and path

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hello,

I changed the startup.bat to the following:

:run

set PROXY_OPTS=-Dhttp.proxyHost=myproxy.mycompany.lan -Dhttp.proxyPort=8080

if “%JAVA_OPTS%” == “” (set JAVA_OPTS=-XX:MaxPermSize=128m)

set RUN_JAVA=%JAVA_HOME%\bin\java

cd %GEOSERVER_HOME%

echo Please wait while loading GeoServer…

echo.

“%RUN_JAVA%” “%JAVA_OPTS%” “%PROXY_OPTS%” -DGEOSERVER_DATA_DIR=“%GEOSERVER_DATA_DIR%” -Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

cd bin

goto end

But I still get “connection refused” messages.

Yours Rüdiger

Von: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] Im Auftrag von Andrea Aime
Gesendet: Dienstag, 30. Juli 2013 12:25
An: Ian Turton
Cc: Gubler, Ruediger; geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] GeoServer behind a HTTP-Proxy

On Tue, Jul 30, 2013 at 12:12 PM, Ian Turton <ijturton@anonymised.com> wrote:

Start up your server with -Dhttp.proxyHost= and -Dhttp.proxyPort= and it should all work fine.

Two different types of proxies, two different configurations.

Ian is giving you the solution for a forward proxy that GeoServer might needs to access the internet itself.

Christian is giving you directions for a reverse proxy that you might be using to expose GeoServer to the internet,

giving it a different hostname and path

Cheers

Andrea

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it