haole
09-29-2010, 07:37 PM
I am not allowed to have WW WMS Server directly accept external connections. So, I have Apache (using mod_proxy_html) acting as a reverse proxy on the same machine, to handle SSL and CRL checking.
Furthermore, I altered WMSServer, Configuration source files and config.xml (configurable) to ONLY listen on localhost (or any other sub-interface you define on the machine and stick in /etc/hosts), since my machine can only listen on standard SSL port (Apache in this case).
I have attached the source for WMSServer, Configuration, config.xml and my httpd.conf.
The attached httpd.conf currently has ssl turned off (comment on line 62) for ease of integration.
How to use:
1. Setup Apache as reverse proxy with mod_proxy_html (beyond this scope) on same machine as WW WMS Server.
There's lots of info out there on using Apache as reverse proxy with ssl and mod_proxy_html.
2. In config.xml --> change <local-only>false</local-only> to <local-only>true</local-only>
3. Copy WMSServer.java and Configuration.java to src/gov/nasa/worldwind/servers/wms
4. Copy config.xml to WEB-INF
5. Install Apache Ant (outside scope)
6. run "ant" from base install directory of WW WMS Server
7. Start WW WMS Server
WW WMS Server will now only accept connections from localhost AND 8080 will not be "visible" to outside world.
---------------------------- 27Nov2010 -----------------------------------
Updated the src code for release 0.6.17.13403 (WW-WMS-0.6.17.13403)
Furthermore, I altered WMSServer, Configuration source files and config.xml (configurable) to ONLY listen on localhost (or any other sub-interface you define on the machine and stick in /etc/hosts), since my machine can only listen on standard SSL port (Apache in this case).
I have attached the source for WMSServer, Configuration, config.xml and my httpd.conf.
The attached httpd.conf currently has ssl turned off (comment on line 62) for ease of integration.
How to use:
1. Setup Apache as reverse proxy with mod_proxy_html (beyond this scope) on same machine as WW WMS Server.
There's lots of info out there on using Apache as reverse proxy with ssl and mod_proxy_html.
2. In config.xml --> change <local-only>false</local-only> to <local-only>true</local-only>
3. Copy WMSServer.java and Configuration.java to src/gov/nasa/worldwind/servers/wms
4. Copy config.xml to WEB-INF
5. Install Apache Ant (outside scope)
6. run "ant" from base install directory of WW WMS Server
7. Start WW WMS Server
WW WMS Server will now only accept connections from localhost AND 8080 will not be "visible" to outside world.
---------------------------- 27Nov2010 -----------------------------------
Updated the src code for release 0.6.17.13403 (WW-WMS-0.6.17.13403)