Brian,
I am fairly sure the problem is in your configuration of Tomcat and Apache. To specifically answer your question, in the source code for the OLFS, which is the Java front-end for Hyrax, the URL is constructed like this:
public void sendHTMLRequestForm(HttpServletRequest request,
HttpServletResponse response)
throws Exception {
.
.
.
String url = request.getRequestURL().toString();
.
.
.
}
(You can see that line "in-situ" on line 760 here: http://scm.opendap.org/trac/browser/tags/olfs/1.7.1/src/opendap/bes/DapDispatchHandler.java )
If you're not Java savy that's fine, I just want to illustrate the point that Hyrax is asking Tomcat for the request URL (Tomcat provides the instance of HttpServletRequest that is interrogated for the request URL) . If Tomcat is coming back with a localhost address then that's all that Hyrax can know. We have encountered this problem before and the previous occurrences have always been resolved with a modification of the Apache/Tomcat integration. I had hoped that our online documentation on this topic ( http://docs.opendap.org/index.php/Hyrax_-_Apache_Integration ) adequately covered the details so that this could be avoided.
I guess the next step is for you to send me your various configuration files (apache: httpd.conf, tomcat: server.xml) and I'll see what I can see.
Can tell me which versions of Apache and Tomcat you are running?
Anyone else wish to chime in here?
Thanks,
Nathan
On Nov 30, 2011, at 6:52 AM, Brian Bresina wrote:
>
> Sorry for the long delay in responding, but I haven't had a chance to get back to this problem in a while.
> The apache server is proxying the data correctly between tomcat and itself as far as I can tell.
> Here is an example from our opendap server:
>
> http://l0dup05.larc.nasa.gov/opendap/misrl2l3/MISR/MI3DAEF.002/2007.06.02/MISR_AM1_CGAS_FIRSTLOOK_JUN_02_2007_F11_0027.hdf.html
>
> The data url on the page has http://localhost:8080 instead of the http://l0dup05.larc.nasa.gov do you know where this
> url is generated from so that I might change it to the correct web address?
>
> On 11/2/11 4:50 PM, Nathan Potter wrote:
>>
>>
>> Brian,
>>
>> Have you done all of the stuff mentioned here:
>>
>> http://docs.opendap.org/index.php/Hyrax_-_Apache_Integration
>>
>>
>> ???
>>
>>
>> N
>>
>> On Nov 2, 2011, at 1:41 PM, Brian Bresina wrote:
>>
>>>
>>> It is behind an iptables firewall on a machine that is using apache to proxy requests from /opendap/ on the main page to the tomcat running on 8080 of the system.
>>>
>>> On 11/2/11 4:16 PM, Nathan Potter wrote:
>>>>
>>>> Is the machine running Hyrax firewalled or proxied?
>>>>
>>>> N
>>>>
>>>>
>>>>
>>>> On Nov 2, 2011, at 1:07 PM, Brian Bresina wrote:
>>>>
>>>>>
>>>>> OPeNDAP Hyrax (1.6.2)
>>>>>
>>>>>
>>>>> On 11/2/11 3:49 PM, Nathan Potter wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> Brian,
>>>>>>
>>>>>> What version of the server is it?
>>>>>>
>>>>>>
>>>>>> Nathan
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Nov 2, 2011, at 12:46 PM, Brian Bresina wrote:
>>>>>>
>>>>>>>
>>>>>>> We have an opendap server running that will display our data, but on the page that is displayed for the data url it shows as http://localhost:8080/ instead of
>>>>>>> http://<our hostname>/ is there a way to get the opendap server to report the beginning url that we want or is this something being returned from the tomcat server is it talking to? Thank you.
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>> "I am not completely worthless, I can always serve as a bad example."
>>>>>>>
>>>>>>> /////
>>>>>>> ( o o )
>>>>>>> ***************oooO**(_)**Oooo*************************
>>>>>>> | Brian L. Bresina | Mail Stop 157D |
>>>>>>> | Sr. Systems Administrator | 2 South Wright St. |
>>>>>>> | SSAI / NASA - Langley | Hampton, VA 23681 |
>>>>>>> | Brian.L...@nasa.gov | (757)864-2108 |
>>>>>>> *******************************************************
>>>>>>
>>>>>> = = =
>>>>>> Nathan Potter ndp at opendap.org
>>>>>> OPeNDAP, Inc. +1.541.231.3317
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> "I am not completely worthless, I can always serve as a bad example."
>>>>>
>>>>> /////
>>>>> ( o o )
>>>>> ***************oooO**(_)**Oooo*************************
>>>>> | Brian L. Bresina | Mail Stop 157D |
>>>>> | Sr. Systems Administrator | 2 South Wright St. |
>>>>> | SSAI / NASA - Langley | Hampton, VA 23681 |
>>>>> | Brian.L...@nasa.gov | (757)864-2108 |
>>>>> *******************************************************
>>>>
>>>> = = =
>>>> Nathan Potter ndp at opendap.org
>>>> OPeNDAP, Inc. +1.541.231.3317
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>>
>>>
>>> "I am not completely worthless, I can always serve as a bad example."
>>>
>>> /////
>>> ( o o )
>>> ***************oooO**(_)**Oooo*************************
>>> | Brian L. Bresina | Mail Stop 157D |
>>> | Sr. Systems Administrator | 2 South Wright St. |
>>> | SSAI / NASA - Langley | Hampton, VA 23681 |
>>> | Brian.L...@nasa.gov | (757)864-2108 |
>>> *******************************************************
>>
>> = = =
>> Nathan Potter ndp at opendap.org
>> OPeNDAP, Inc. +1.541.231.3317
>>
>>
>>
>>
>
> --
>
>
> "I am not completely worthless, I can always serve as a bad example."
>
> /////
> ( o o )
> ***************oooO**(_)**Oooo*************************
> | Brian L. Bresina | Mail Stop 157D |
> | Sr. Systems Administrator | 2 South Wright St. |
> | SSAI / NASA - Langley | Hampton, VA 23681 |
> | Brian.L...@nasa.gov | (757)864-2108 |
> *******************************************************
= = =
Nathan Potter ndp at opendap.org
OPeNDAP, Inc. +1.541.231.3317
N