Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #RXC-180508]: Wrong Base URL



Hi Guan Wang,

> We are assigned the task to set up THREDDS server for NOAA. The problem
> we got is that THREDDS can't resolve the base url if we use ProxyPass
> in httpd to link with tomcat instead of mod_jk
> 
> If httpd.conf, I have the setting below:
> 
> ProxyPass /thredds http://localhost:8080/thredds
> 
> ProxyPassReverse /thredds http://localhost:8080/thredds
> 
> So, when THREDDS tried to build the path, it looks like
> http://localhost:8080/...
> 
> You can check it out on our server:
> http://michigan.glin.net/thredds/catalog.html
> 
> I don't know if there is a config section or attribute that allow users
> to set the base url?

Take a look at the TDS reference doc page on "Running Tomcat Behind a Proxy Server":

http://www.unidata.ucar.edu/projects/THREDDS/tech/reference/TomcatBehindProxyServer.html

It goes into some detail on configuring mod_proxy and gets around this problem (the TDS gets handed the old request URL) by using mod_proxy_ajp.

We aren't too familiar with mod_jk (as you can see near the bottom of the reference page mentioned above). Did mod_jk not require special configuration to avoid this problem? And why did you switch from mod_jk to mod_proxy?

Let us know if this helps.
Thanks. 

Ethan

Ticket Details
===================
Ticket ID: RXC-180508
Department: Support THREDDS
Priority: High
Status: Open


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690