Jump to content

NGINX - Error We were unable to connect your account. Please contact your system administrator.


Recommended Posts

Apparently this was NEVER resolved. Now I did fix my REDIRECTS by entering the FOLLOWING into my /etc/nginx/sites-enabled/domain.com on UBUNTU 18

 


server {
        root /var/www/html;
        index index.php index.html index.htm index.nginx-debian.html;
        server_name my.domain.com www.my.domain.com;

        location / {
                try_files $uri $uri/ =404;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }

        location ~ /\.ht {
                deny all;
        }     

        add_header Strict-Transport-Security "max-age=15552000; preload";
        add_header X-Frame-Options DENY;
        add_header X-Content-Type-Options nosniff;
        add_header X-XSS-Protection "1";

        location ~ /account/announcements/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/announcements/$1;
        }
        
        location ~ /account/downloads/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/downloads/$1;
        }
        
        location ~ /account/knowledgebase/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/knowledgebase/$1;
        }     

    rewrite ^/announcements/([0-9]+)/[a-zA-Z0-9-]+.html$ /./announcements.php?id=$1 last;
    rewrite ^/announcements$ /./announcements.php last;

    rewrite ^/downloads/([0-9]+)/([^/]*)$ /./downloads.php?action=displaycat&catid=$1 last;
    rewrite ^/downloads$ /./downloads.php last;

    rewrite ^/admin/setup/(.*)$ /admin/index.php?rp=/admin/setup/$1 last;

    rewrite ^/knowledgebase/([0-9]+)/[a-zA-Z0-9-]+.html$ /./knowledgebase.php?action=displayarticle&id=$1 last;
    rewrite ^/knowledgebase/([0-9]+)/([^/]*)$ /./knowledgebase.php?action=displaycat&catid=$1 last;
    rewrite ^/knowledgebase$ /./knowledgebase.php last;

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/my.domain.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
    ssl_session_tickets off;
    ssl_stapling on;
    ssl_stapling_verify on;

    add_header Strict-Transport-Security "max-age=15552000; preload";
    add_header X-Frame-Options DENY;
    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1";
    resolver 1.1.1.1 8.8.8.8 valid=300s;
    resolver_timeout 3s;
}
server {
    if ($host = my.domain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen 80;
        server_name my.domain.com www.my.domain.com;
    return 404; # managed by Certbot


}

All of my redirects work fine on the site and full friendly URLs.

Just social sign in is broken.

Ideas? Nothing online

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated