[ckan-dev] Apache2 (CKAN) + TOMCAT6 + Mod Proxy Problems

Jesús Redondo redondogarciajesus at gmail.com
Fri Jan 31 13:41:02 UTC 2014


Hello, this is not an exactly CKAN problem, but CKAN is involved in the
process. Maybe you could give a hand with this. Thanks in advance.

---

I have a server running CKAN over Apache2, this server also have a tomcat6
hosting some HTML pages. Apache is running in 8080 and Tomcat in 8081.
Nginx is used to make Apache accessible through port 80.


I have a web in the tomcat served in

    http://195.57.27.91:8081/arboles

I would like to make this web accessible through the port 80 so I use Mod
Proxy from Apache2 to make a internal proxy that redirects the incoming
request asking for /arboles to port 8081. This has been done by using
http.conf like this:

    LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
    LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so


    ProxyRequests Off
    ProxyPreserveHost On


    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass /arboles http://195.57.27.91:8081/arboles/
    ProxyPassReverse /arboles http://195.57.27.91:8081/arboles/

In do know this Proxy is working because I have tried it in another server
with another domain successfully.

PROBLEM:
When I try to resolve the URI:

    http://195.57.25.27/arboles

It doesn't load the page. All I get is 504 Gateway Error Time-out.

Image of the error: http://i.stack.imgur.com/PVD5h.png

I have checked the Apache2 logs and there is no track of error or
misconfiguration, I don't know what else to try. Any ideas?


PD: I forgot to mention the nginx log:

    2014/01/31 10:39:28 [error] 13921#0: *321 upstream timed out (110:
Connection timed out) while reading response header from upstream, client:
158.49.219.193, server: , request: "GET /arboles/ HTTP/1.1", upstream: "
http://127.0.0.1:8080/arboles/", host: "opendata.caceres.es"

Note: opendata.caceres.es is the domain name for the server.

The only thing that I can extract from this error is that nginx it took too
much time to request the page and it sent back an error.


Thanks,

Jesús Redondo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140131/c0eed47f/attachment-0002.html>


More information about the ckan-dev mailing list