mercredi 1 septembre 2021

Getting HTTP 500 error but nothing on logs (Tomcat + Apache2 reverse proxy)

So, I've been string to configure a server to deploy a customized version of the Exo community platform. The customized version comes in a Tomcat bundle and I'm using Apache 2.4 as a reverse proxy. The deploy finished successfully, however there is a software registration step demanded by Exo and that when things get weird:

WARN | Failed : HTTP error code : 500 [o.e.p.c.s.r.s.i.SoftwareRegistrationServiceImpl<http-nio-0.0.0.0-8080-exec-13>]

I tried several different configurations but I'm completely stuck. How could I solve this issue? Or at least, there is a way to debug it so I don't end up with this generic HTTP 500 error?

In my server.xml I have added the following configuration:

<Connector address="0.0.0.0" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
               enableLookups="false" redirectPort="6565" bindOnInit="false"
               connectionTimeout="20000" disableUploadTimeout="true"
               URIEncoding="UTF-8"
               compression="off" compressionMinSize="2048"
               noCompressionUserAgents=".*MSIE 6.*" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript" />

And my VHost reverse proxy:

    <VirtualHost *:80>
        ServerName server.name.edu
    
        HostnameLookups Off
        UseCanonicalName Off
        ServerSignature Off
    
        ProxyRequests Off
        ProxyPreserveHost On
        ProxyVia On
        <Location />
          Order allow,deny
          Allow from all
        </Location>
    
    
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>
    
        <IfModule proxy_wstunnel_module>
             ProxyPass           /cometd    ws://127.0.0.1:8080/cometd max=100 acquire=5000 retry=5 disablereuse=on flushpackets=on
        </IfModule>
    
        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
      
    </VirtualHost>

<IfModule mod_ssl.c>
        <VirtualHost _default_:443>

        ServerName server.name.edu
        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
        ProxyRequests Off
        ProxyPreserveHost Off

        SSLEngine on

        SSLCertificateFile      /etc/ssl/certs/cert.pem
        SSLCertificateKeyFile /etc/ssl/private/cert.key

        </VirtualHost>
</IfModule>

(My server ports (80, 8080, 433, etc) are open.)




Aucun commentaire:

Enregistrer un commentaire