Learn about Centmin Mod LEMP Stack today
Register Now

Install How to Disable IP VPS

Discussion in 'Install & Upgrades or Pre-Install Questions' started by computer19852007, Dec 12, 2015.

  1. computer19852007

    computer19852007 Member

    84
    8
    8
    Jun 25, 2014
    Ratings:
    +9
    Local Time:
    6:58 AM
    Centmin Mod 1.2.3-eva2000.06
    MariaDB 5.5.34
    Hello, I have Setup new VPS with Centminmod, and i hava add a Domain in VPS, but when address with a ip vps, it show Centmin Mod Nginx Test Page

    How to redirect when type ip to a Domain

    Thanks @eva2000

     
  2. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    1:58 AM
    1.9.9
    10.1.10
    The default page is located in
    Code:
    /usr/local/nginx/html/index.html
    and you can find the vhost configuration file here
    Code:
    /usr/local/nginx/conf/conf.d/virtual.conf
     
  3. computer19852007

    computer19852007 Member

    84
    8
    8
    Jun 25, 2014
    Ratings:
    +9
    Local Time:
    6:58 AM
    Centmin Mod 1.2.3-eva2000.06
    MariaDB 5.5.34
    i have Edit it, thank you very much
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Last edited: Dec 12, 2015
  5. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    7:58 PM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    I have multiple domains on a VPS, and I want the IP to go to one of the specific domains, instead of showing the Test Page. Should I put a redirect into the index.html file referenced above? Will the stats URLs, etc., still work OK if I do that?

    EDIT: figured it out, just added this to the header in the nginx index.html file:

    Code:
    <meta http-equiv="Refresh" content="0; url=https://www.example.com" />
     
    Last edited: Apr 21, 2020