Hosting show incorrect website

Hi,

After adding SSL to my server jplay.tv. Now when I load it, I load a strange website instead of my old website: https://jplay.tv/ The source in public_html is different with what the site shows: https://goo.gl/dioEN5 I noticed that the content between https and http is different: https://jplay.tv/test.php http://jplay.tv/test.php

Thanks, Giang Anh

Status: 
Active

Comments

Howdy -- it looks like that's loading the content for a website named "Helios".

Is that another site being hosted on your server? Or haven't you seen that site before?

It's possible that there's an Apache issue that's causing it to load the wrong site on your server. If that's the case, the instructions here may help resolve that:

https://virtualmin.com/documentation/web/troubleshooting#The_Wrong_Site_...

Hey,

Yes, actually I created a website like that before. I tried to disable other virtual server jplay.vn and found that it use jplay.vn content instead of jplay.vn I'm using nginx and here is the site config for jplay.tv:

server {
server_name jplay.tv www.jplay.tv;
listen 10.0.0.5;
server_name_in_redirect off;

root /home/jplay/public_html;
index index.php index.html index.htm default.html default.htm;
access_log /var/log/virtualmin/jplay.tv_access_log;
error_log /var/log/virtualmin/jplay.tv_error_log;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME /home/jplay/public_html$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT /home/jplay/public_html;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS $https;

location / {
expires 1d;

    # Enable joomla SEF URL's inside Nginx
    try_files $uri $uri/ /index.php?$args;
}

# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
                return 403;
                error_page 403 /403_error.html;
}

location ~ \.php$ {
            fastcgi_pass unix:/var/php-nginx/143979903845399.sock/socket;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include /etc/nginx/fastcgi_params;
}

# caching of files
location ~* \.(ico|pdf|flv)$ {
                expires 1y;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
                expires 14d;
    }

# ssl on;
fastcgi_read_timeout 120;
ssl_certificate /home/jplay/ssl.cert;
ssl_certificate_key /home/jplay/ssl.key;
}

Also here is the result of ipconfig. 10.0.0.5 is a local IP of my Azure VM. The public IP is: 137.116.153.17

eth0      Link encap:Ethernet  HWaddr 00:0d:3a:a0:8d:32
          inet addr:10.0.0.5  Bcast:10.31.255.255  Mask:255.224.0.0
          inet6 addr: fe80::20d:3aff:fea0:8d32/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1232177 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1188347 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:279101023 (279.1 MB)  TX bytes:759615428 (759.6 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:224 errors:0 dropped:0 overruns:0 frame:0
          TX packets:224 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:33288 (33.2 KB)  TX bytes:33288 (33.2 KB)

root@JPlaySite:~#

Ah, it's Nginx you're using here, not Apache... hmm, could you run this command, and paste the output in here:

nginx -V

Also, are there other domains on your server that are configured to use SSL?

Edit: I corrected the above command, the parameter should be "-V", a capitol "V".