Re: [thredds] ProxyPass and Godiva2 link

Hi Roy,

Yes, I'm using tomcat and that change to server.xml appears to have fixed it.

I guess I owe Lynn a beer!  :-)

Thanks,
Mike

On Jan 27, 2015, at 9:27 PM, Roy Mendelssohn - NOAA Federal 
<roy.mendelssohn@xxxxxxxx> wrote:

> Hi Mike:
> 
> No guarantee, but try this. I am assuming you are running tomcat, so in your 
> “server.xml” file where Connector to port 8080 is defined, try adding  to 
> that connector the line:
> 
> proxyName=“stoqs.mbari.org”
> proxyPort=’”80”
> 
> When I go to your site and click on Godiva2 I get an URL:
> 
> http://stoqs.mbari.org/thredds/godiva2/godiva2.html?server=http://stoqs.mbari.org:8080/thredds/wms/terrain/Globe_1min_bath.nc
> 
> The first doesn’t have the port because of apache, the second I believe is 
> getting the info from tomcat.  I think what I am saying will override that.  
> If I am right you can buy Lynn a beer the next time you see her!!
> 
> -Roy
> 
> 
> 
> On Jan 27, 2015
> 
> , at 8:25 PM, Mike McCann <mccann@xxxxxxxxx> wrote:
> 
>> I'm running an apache httpd server on port 80 and have configured a 
>> ProxyPass like this in httpd.conf:
>> 
>> <VirtualHost *:80>
>> ServerName stoqs.mbari.org
>> DocumentRoot /var/www/html
>> <Location /thredds>
>>    ProxyPass http://stoqs.mbari.org:8080/thredds
>>    ProxyPassReverse http://stoqs.mbari.org:8080/thredds
>> </Location>
>> </VirtualHost>
>> 
>> Is there some place in the TDS configuration to tell it to use the proxy?
>> 
>> -Mike
>> 
>> 
>> On Jan 27, 2015, at 7:59 PM, Mike McCann <mccann@xxxxxxxxx> wrote:
>> 
>>> I tried that and am still getting the same error with the "Godiva2 
>>> (browser-based)" link.
>>> 
>>> -Mike
>>> 
>>> On Jan 27, 2015, at 7:15 PM, Christian Ward-Garrison <cwardgar@xxxxxxxx> 
>>> wrote:
>>> 
>>>> Can't you just change the port you're assigning to Tomcat? [1]
>>>> 
>>>> [1] 
>>>> http://stackoverflow.com/questions/4756039/how-to-change-the-port-of-tomcat-from-8080-to-80
>>>> 
>>>> On Tue, Jan 27, 2015 at 7:26 PM, Mike McCann <mccann@xxxxxxxxx> wrote:
>>>> 
>>>> Yes. I want to remove ":8080" from the url. 
>>>> 
>>>> -Mike
>>>> 
>>>> On Jan 27, 2015, at 5:30 PM, Christian Ward-Garrison <cwardgar@xxxxxxxx> 
>>>> wrote:
>>>> 
>>>>> I'm confused about what you're doing with ProxyPass. Are you just using 
>>>>> it to remap the requested port?
>>>>> 
>>>>> e.g. http://stoqs.mbari.org:80/thredds/catalog.html  -->  
>>>>> http://stoqs.mbari.org:8080/thredds/catalog.html
>>>>> 
>>>>> On Wed, Jan 21, 2015 at 12:28 PM, Mike McCann <mccann@xxxxxxxxx> wrote:
>>>>> Apologies. When I sent this email a few weeks ago the stoqs.mbari.org 
>>>>> server was behind a firewall. It's opened up now.
>>>>> 
>>>>> Is there some configuration file I can adjust to have TDS generate url 
>>>>> arguments without the ':8080'?
>>>>> 
>>>>> -Mike
>>>>> 
>>>>> On Jan 8, 2015, at 3:11 PM, Mike McCann <mccann@xxxxxxxxx> wrote:
>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> I've set up a TDS with a ProxyPass to use port 80 and it all works fine 
>>>>>> except for the Viewer links which use the :8080 url in arguments of the 
>>>>>> url, see:
>>>>>> 
>>>>>>  
>>>>>> http://stoqs.mbari.org/thredds/catalog/terrain/catalog.html?dataset=terrain/Globe_2min_bath.nc
>>>>>> 
>>>>>> Clicking on the "Godiva2 (browser-based)" link gives a "Invalid JSON 
>>>>>> returned from server" alert. Developer tools shows this error:
>>>>>> 
>>>>>>  XMLHttpRequest cannot load 
>>>>>> http://stoqs.mbari.org:8080/thredds/wms/terrain/Globe_2min_bath.nc?item=menu&menu=&request=GetMetadata.
>>>>>>  No 'Access-Control-Allow-Origin' header is present on the requested 
>>>>>> resource. Origin 'http://stoqs.mbari.org' is therefore not allowed 
>>>>>> access.
>>>>>> 
>>>>>> It seems to me that if the url could be constructed using the ProxyPass 
>>>>>> address then I wouldn't be getting this error.
>>>>>> 
>>>>>> How can I configure my server to use urls without ":8080"?
>>>>>> 
>>>>>> -Mike
>>>>>> 
>>>>>> --
>>>>>> Mike McCann
>>>>>> Software Engineer
>>>>>> Monterey Bay Aquarium Research Institute
>>>>>> 7700 Sandholdt Road
>>>>>> Moss Landing, CA 95039-9644
>>>>>> Voice: 831.775.1769  Fax: 831.775.1736 http://www.mbari.org
>>>>>> 
>>>>>> _______________________________________________
>>>>>> thredds mailing list
>>>>>> thredds@xxxxxxxxxxxxxxxx
>>>>>> For list information or to unsubscribe,  visit: 
>>>>>> http://www.unidata.ucar.edu/mailing_lists/
>>>>> 
>>>>> _______________________________________________
>>>>> thredds mailing list
>>>>> thredds@xxxxxxxxxxxxxxxx
>>>>> For list information or to unsubscribe,  visit: 
>>>>> http://www.unidata.ucar.edu/mailing_lists/
>>>>> 
>>>>> 
>>>> 
>>> 
>> 
>> _______________________________________________
>> thredds mailing list
>> thredds@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit: 
>> http://www.unidata.ucar.edu/mailing_lists/
> 
> **********************
> "The contents of this message do not reflect any position of the U.S. 
> Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new address and phone***
> 110 Shaffer Road
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: Roy.Mendelssohn@xxxxxxxx www: http://www.pfeg.noaa.gov/
> 
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected" 
> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
> 



  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: