Hi Devs,

I tried-out the nginx extension 4.1.0 for single tenant application
scenario. I created 2 tomcat applications and ran the extension. Generated
nginx.conf file looks lie below[1]. Here the issue is port mappings for
both the http servers are same. In
org.apache.stratos.nginx.extension.NginxConfigWriter.write()
it's iterating through topology and getting services and passing service
ports to generateConfigurationForCluster() Shouldn't the port map be the
cluster member portMap in single tenant case?

Also I have added a domain mapping to single-cartridge-app2 but it doesn't
get reflected in the nginx.conf as well .

[1]
http {
    upstream single-cartridge-app2.tomcat.tomcat.stratos.org {
        server 172.17.8.102:30079;
    }

    server {
        listen 8281;
        server_name single-cartridge-app2.tomcat.tomcat.stratos.org;
        location / {
            proxy_pass
http://single-cartridge-app2.tomcat.tomcat.stratos.org;
        }
        location /nginx_status {
            stub_status on;
            access_log off;
            allow 127.0.0.1;
            deny all;
        }
    }
}

http {
    upstream single-cartridge-app.tomcat.tomcat.stratos.org {
        server 172.17.8.102:30079;
    }

    server {
        listen 8281;
        server_name single-cartridge-app.tomcat.tomcat.stratos.org;
        location / {
            proxy_pass
http://single-cartridge-app.tomcat.tomcat.stratos.org;
        }
        location /nginx_status {
            stub_status on;
            access_log off;
            allow 127.0.0.1;
            deny all;
        }
    }
}


Regards,
-- 
*Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail  :
anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web      :
www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.*

Reply via email to