1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Unauthorized domain forwarding issue (trying to resolve via Nginx)

Discussion in 'Nginx' started by ravemittal, Jun 14, 2017.

  1. #1
    Hi All,

    An unauthorized domain koyblanafuc.cf is forwarding to our domain quackquack.in. We are trying to stop this unauthorized domain from rendering our content/pages via nginx.

    The solution to the problem worked on http. But doesn't seem to be working https. To Catch non authorized domains on both http and https.

    
    server{
    listen 80 default_server;
    root /aaa/bbb/www/404;
    index index.html index.htm;
    location / {
    try_files $uri $uri/ =404;
    }
    }
    
    server{
    listen 443 default_server;
    root /aaa/bbb/www/404;
    index index.html index.htm;
    location / {
    try_files $uri $uri/ =404;
    }
    }
    Code (markup):

    But I received the error as...

    
    Secure Connection Failed
    
    An error occurred during a connection to quackquack.in. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
    
    Code (markup):
    My Domain Non-SSL V-host:

    
    server {
    listen 80;
    server_name quackquack.in www.quackquack.in;
    server_tokens off;
    
    Code (markup):
    My Domain SSL V-host:
    
    server {
    listen 443;
    server_name quackquack.in;
    
    ssl on;
    ssl_certificate /myssl_crt_file;
    ssl_certificate_key /myssl_key_file;
    
    ssl_protocols SSLv2 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256HE-RSA-AES256-GCM-SHA384HE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHAHE-RSA-AES256-SHA;
    ssl_prefer_server_ciphers on;
    
    Code (markup):
    Any suggestions will greatly help!
    SEMrush
     
    ravemittal, Jun 14, 2017 IP
    SEMrush