Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

ERR_CONNECTION_REFUSED #52

Open
Olaf1607 opened this issue Sep 20, 2020 · 1 comment
Open

ERR_CONNECTION_REFUSED #52

Olaf1607 opened this issue Sep 20, 2020 · 1 comment

Comments

@Olaf1607
Copy link

Hi,

After log in, Nginx returns this error on the https://****.com/index URL : ERR_CONNECTION_REFUSED

Do you have an idea of the problem ?
Thanks in advance.

My Nginx .conf file is:

server
{
    #listen [::]:80;
    server_name ****.com www.****.com;
    index index.php default.php index.html index.htm default.html default.htm;
    root  /usr/share/nginx/html/public/;

    #error_page   404   /404.html;

    # Deny access to PHP files in specific directory
    location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

    # Don't Log the access log of robots.txt or favicon.ico
    location = /robots.txt { allow all; log_not_found off; access_log off; }
        location = /favicon.ico { allow all; log_not_found off; access_log off; }

    # security headers
    # add_header X-Frame-Options "SAMEORIGIN" always;
    # add_header X-XSS-Protection "1; mode=block" always;
    # add_header X-Content-Type-Options "nosniff" always;
    # add_header Referrer-Policy "no-referrer-when-downgrade" always;
    # add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
    # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

    location = / {
        rewrite ^(.*)$ /index last;
    }

    location / {
        proxy_http_version 1.1;
        proxy_set_header Connection "keep-alive";
        proxy_set_header Host $http_host;
        proxy_set_header Scheme $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        if (!-e $request_filename) {
            proxy_pass http://127.0.0.1:9501;
        }
    }

    # assets, media
    location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
        expires 7d;
        access_log off;
    }

    # svg, fonts
    location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
        add_header Access-Control-Allow-Origin "*";
        expires 7d;
        access_log off;
    }

    # ACME-challenge
    location ~ /.well-known {
        allow all;
    }

    # . files
    location ~ /\.(?!well-known) {
        deny all;
    }

    access_log  /usr/share/nginx/html/bht.is.log;

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/bhtorrents.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/bhtorrents.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}```
@Rhilip
Copy link
Owner

Rhilip commented Sep 20, 2020

Did you start the ridpt application and listen at port 9501 ?
RidPT is based on swoole and is not a php-fpm application.

And I advise you to use UNIT3D (3.x) at this time. It's based on Laravel and since this pr HDInnovations/UNIT3D-Community-Edition#1369 , UNIT3D tracker Behavior like RidPT's tracker.

More, RidPT is still on early development, It is not suitable for use in a production environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants