On 03 Feb 2015, at 09:31, malintha <nginx-forum@nginx.us> wrote:
> My nginx configurations are as follows. I am going to connect running server
> UI from my machine through nginx.
>
> server {
> listen 443;
> server_name mgt.wso2bps.malintha.com;
> ssl on;
> ssl_certificate /etc/nginx/ssl/wso2bps.crt;
> ssl_certificate_key /etc/nginx/ssl/wso2bps.key;
>
> location / {
> proxy_pass https://10.1.1.1:9443/carbon;
>
> }
> }
>
>
> Server is running and I can access the UI directly from my computer. But
> when I access it through nginx it goves me 502 bad gateway on browser and
> following error in nginx error log
>
>
> 2015/02/03 13:15:43 [crit] 5721#0: *7 connect() to 10.1.1.1:9443 failed (13:
> Permission denied) while connecting to upstream, client: 10.174.14.28,
> server: mgt.wso2bps.malintha.com, request: "GET / HTTP/1.1", upstream:
> "https://10.1.1.1:9443/carbon", host: "mgt.wso2bps.malintha.com"
>
> I tried run server/stop server but both incidents gives same error in nginx
> side. What may be the reason for this error?
It may be SELinux:
http://nginx.com/blog/nginx-se-linux-changes-upgrading-rhel-6-6/
--
Igor Sysoev
http://nginx.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx