Want more timely Centmin Mod News Updates?
Become a Member

Nginx Site auto redirect problem.

Discussion in 'Install & Upgrades or Pre-Install Questions' started by YuchiRO, Aug 29, 2016.

  1. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    2:47 PM
    5.5.4
    Hi

    I'm using Centmin 123.09beta01 on Centos 7.2

    I have site A on sv1(v1.2.3-eva2000.08) is running no problem, and site B on sv2(v1.2.3-eva2000.08) is running no problem. But when i add site A and site B to new server (sv3) and sync data from old server to new server, but site A always redirect to site B (!??!). I try to remove and re-add again with option 22 but same problem ?

    So, how to slove this problem ? Thanks.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    5:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    Both wordpress sites ?

    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents for both site A and B's domains for /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)