CMAP Server Behind a Reverse Proxy (NGINX)

Having problems with IHMC CmapServer? Think you have found a bug? Let us know!
Forum rules
Before you post a problem or bug, please be sure you have included the version number of IHMC CmapServer, the operating system and version, the amount of RAM, and any other information that allows us to be able to replicate the problem you are having. (i.e. what were you doing when the problem occur? were you running another program (application) by the time you have the problem?)
Post Reply
chris2fr
Posts: 4
Joined: Tue May 19, 2009 8:06 am

CMAP Server Behind a Reverse Proxy (NGINX)

Post by chris2fr » Tue Oct 20, 2015 8:45 am

Hi,

I have the web interface working behind NGINX reverse proxy for everything except the default page as follows at the end of this message.

The internal maps work fine. The only problem is on the home page, where I have the following Tomcat error:
HTTP Status 404 - The null portion

type Status report

message The null portion

description The requested resource (The null portion) is not available.

Apache Tomcat/6.0.35
Is there a way of forcing the directory listing in the URL for te ^$ or ^/$ cases?

Code: Select all

server {

  server_name www.example.com;

  listen 8443 ssl;
  ssl_certificate /etc/ssl/certs/example_com_bundle.crt;
  ssl_certificate_key /etc/ssl/private/example_com_nopass.key;

  location / {
    rewrite ^/(.*)$ /VirtualHostBase/https/www.example.com:8443/VirtualHostRoot/$1 break;
    proxy_set_header HOST $host;
    proxy_set_header X-REAL-IP $remote_addr;
    proxy_set_header X-ForwardedFor $proxy_add_x_forwarded_for;
    proxy_pass http://localhost:8888;
    proxy_redirect default;
  }

}


cmapadmin
Site Admin
Posts: 570
Joined: Sat Dec 13, 2008 2:22 pm

Re: CMAP Server Behind a Reverse Proxy (NGINX)

Post by cmapadmin » Wed Oct 21, 2015 7:18 am

Can you be more specific on what you need? Its not clear.

Post Reply