Get the most out of your Centmin Mod LEMP stack
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

    Jan 12, 2015
    Local Time:
    6:08 AM

    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    9:08 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Both wordpress sites ?

    When you create a new nginx vhost domain via 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 (and if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/
    • Vhost public web root will be at /home/nginx/domains/
    • Vhost log directory will be at /home/nginx/domains/
    Please post the contents for both site A and B's domains for /usr/local/nginx/conf/conf.d/ and if applicable /usr/local/nginx/conf/conf.d/ wrapped in CODE tags (outlined at How to use forum BBCODE code tags)