Hi all,
Thank you for all the suggestions. The following configuration worked to
access the APIM management console
upstream ssl.wso2.am.com {
sticky cookie JSESSIONID;
server 52.167.133.41:8243;
server 52.167.134.128:8243;
}
upstream ssl.wso2.ammgt.com {
sticky cookie JSESSIONID;
server 52.167.133.41:9443;
}
server {
listen 443;
server_name nginx0.eastus2.cloudapp.azure.com;
ssl on;
ssl_certificate /home/apifest/keys/server.crt;
ssl_certificate_key /home/apifest/keys/server.key;
proxy_set_header X-Forwarded-Port 443;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_read_timeout 5m;
proxy_send_timeout 5m;
proxy_pass https://ssl.wso2.am.com;
}
location /carbon {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_read_timeout 5m;
proxy_send_timeout 5m;
proxy_pass https://ssl.wso2.ammgt.com;
}
}
Best Regards,
On Mon, Apr 17, 2017 at 6:25 PM, Farasath Ahamed <[email protected]> wrote:
>
>
> On Monday, April 17, 2017, Ramindu De Silva <[email protected]> wrote:
>
>> Hi all,
>>
>> I have configured a Gateway cluster (1 Node as Manager/ Worker and 1 Node
>> as Worker)
>>
>> When I try to access the management console of the Gateway Manager
>> (https://hostname:*9443*/carbon it gets redirected to
>> https://hostname/carbon) it says "site cannot be reached".
>>
>> Please comment if there's any missed/ wrong configuration has been done.
>>
>> Following are the configurations done for the Gateway Manager/ Worker Node
>>
>> *in the axis.xml*
>>
>> <parameter name="properties">
>> <property name="backendServerURL" value="https://
>> ${hostName}:${httpsPort}/services/"/>
>> <property name="mgtConsoleURL" value="https://${hostName}:${h
>> ttpsPort}/"/>
>> <property name="subDomain" value="*mgt*"/>
>> <property name="port.mapping.80" value="9763"/>
>> <property name="port.mapping.443" value="9443"/>
>> </parameter>
>>
>> *In catelina.xml*
>>
>> <Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
>> port="9763"
>> proxyPort="80"
>>
>> <Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
>> port="9443"
>> proxyPort="443"
>>
>> *nginx configuration*
>>
>> upstream ssl.wso2.am.com {
>> sticky cookie JSESSIONID;
>> server ip_address:8243;
>>
>> Shouldn't the port here be 9443 if you are trying to access management
> console?
>
>> server ip_address:8243;
>> }
>>
>>
>
>> server {
>> listen 443;
>> server_name nginx_hostname;
>> ssl on;
>> ssl_certificate /home/apifest/keys/server.crt;
>> ssl_certificate_key /home/apifest/keys/server.key;
>>
>> location / {
>> proxy_set_header X-Forwarded-Host $host;
>> proxy_set_header X-Forwarded-Server $host;
>> proxy_set_header X-Forwarded-For
>> $proxy_add_x_forwarded_for;
>> proxy_set_header Host $http_host;
>> proxy_read_timeout 5m;
>> proxy_send_timeout 5m;
>> proxy_pass https://ssl.wso2.am.com;
>> }
>> }
>>
>>
>>
>> Best Regards,
>> --
>> *Ramindu De Silva*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: [email protected]
>> mob: +94 772339350
>> mob: +94 719678895
>>
>
>
> --
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>
>
--
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware
email: [email protected] <[email protected]>
mob: +94 772339350
mob: +94 719678895
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev