0

I have the following location configuration:

server {
    listen       80 default_server;
    listen       [::]:80 default_server;
    server_name  _;
    root         /usr/share/nginx/html;
    charset      utf-8;

    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;

    location / {
        proxy_pass              http://localhost:8080;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        Host $http_host;
        proxy_set_header        X-Forwarded-Proto $scheme;

        expires 0m;
    }

https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/NginX/

I restarted Nginx but it gives this error

The page you are looking for is temporarily unavailable. Please try again later.

nginx/error.log
2019/06/11 20:27:48 [crit] 5340#0: *1 connect() to [::1]:8080 failed (13: Permission denied) while connecting to upstream, client: 99.99.99.99, server: _, request: "GET / HTTP/1.1", upstream: "http://[::1]:8080/", host: "example.com"
2019/06/11 20:27:48 [crit] 5340#0: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 99.99.99.99, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "example.com"

(This question refers to FCGI which I'm not using: Getting "The page you are looking for is temporarily unavailable. Please try again later")

I'm using CentOS 7. (Possible problem with SELinux?)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.