Page 1 of 1

CMAP Server Behind a Reverse Proxy (NGINX)

Posted: Tue Oct 20, 2015 8:45 am
by chris2fr
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;
  }

}


Re: CMAP Server Behind a Reverse Proxy (NGINX)

Posted: Wed Oct 21, 2015 7:18 am
by cmapadmin
Can you be more specific on what you need? Its not clear.