Help us understand the problem. What is going on with this article?

OpenMBEE nginx設定

More than 1 year has passed since last update.

OpenMBEEは複数のポートを使用するため、nginxでリバースプロキシを設定した。

設定例を以下に記す

vi /usr/local/nginx/conf/nginx.conf
#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}
http {
    server_tokens off;
    include       mime.types;
    default_type  application/octet-stream;
    limit_req_zone  $binary_remote_addr  zone=one:10m   rate=1r/s;
    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;

        location ^~/OpenMBEE/ {
                proxy_pass http://localhost:9000/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/alfresco/ {
                proxy_pass http://localhost:8080/alfresco/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/alfresco/mmsapp/ {
                proxy_pass http://localhost:9000/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/mms/ {
                proxy_pass http://localhost:8080/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/share/ {
                proxy_pass http://localhost:8080/share/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/solr4/ {
                proxy_pass http://localhost:8080/solr4/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
        location ^~/api-explorer/ {
                proxy_pass http://localhost:8080/api-explorer/;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header host $host;
        }
   }
}

重要なのはlocation部分

設定を反映

/usr/local/nginx/sbin/nginx -s reload

備考
・「location ^~/alfresco/mmsapp/」について
mdkから「Open in View Editor」をするとVEのパスが「/alfresco/mmsapp/mms.html」と扱われるためnginxに設定を追加。
mdkのどこかからVEのURLを指定出来るのかもしれない。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした