Local IP auto redirect to URL


Not sure what happened, but after a recent of update of MySQL, somehow my local ip is now auto redirect to my domain.
ie. >>>https://abc.xyz.com

php 5.6
server: Nginx

ii  libdbd-mysql-perl                                                4.028-2+deb8u2                    amd64        Perl5 database interface to the MySQL database

ii libmysqlclient18:amd64 5.5.53-0+deb8u1 amd64 MySQL database client library
ii mysql-client-5.5 5.5.53-0+deb8u1 amd64 MySQL database client binaries
ii mysql-common 5.5.53-0+deb8u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
ii mysql-server 5.5.53-0+deb8u1 all MySQL database server (metapackage depending on the latest version)
ii mysql-server-5.5 5.5.53-0+deb8u1 amd64 MySQL database server binaries and system database setup
ii mysql-server-core-5.5 5.5.53-0+deb8u1 amd64 MySQL database server binaries
ii openmediavault-mysql 3.0.4 all MySQL plugin for OpenMediaVault.
ii php5-mysqlnd 5.6.27+dfsg-0+deb8u1 amd64 MySQL module for php5 (Native Driver)
ii python-mysqldb 1.2.3-2.1 amd64 Python interface to MySQL


$CONFIG = array (
‘instanceid’ => ‘ocboc03zyp7e’,
‘passwordsalt’ => ‘REMOVED’,
‘secret’ => ‘REMOVED’,
‘trusted_domains’ =>
array (
0 => ‘’,
1 => ‘abc.xyz.com’,
2 => ‘localhost’,
‘datadirectory’ => ‘/media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/data’,
‘overwrite.cli.url’ => ‘’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘’,
‘dbname’ => ‘owncloud’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,

Are you sure it is the database and no coincidence. Could be that there were some changes in your nginx-config and a restarted activated these changes?

This is an example of my nginx, do you think it’s the culprit?

server_name abc.xyz.com

if ($scheme = http) {
return 301 https://$server_name$request_uri;

Probably, you fill in your server_name. Either create a second one with your IP or use something that rewrites everything to SSL: https://bjornjohansen.no/redirect-to-https-with-nginx#!