Get the most out of your Centmin Mod LEMP stack
Become a Member

Easiest way to change my domain from .com to .eu in Centminmod?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Apr 9, 2015.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    8:02 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    Which is the easiest way to change in Centminmod my domain from .com to .eu as i buy a new .eu that i want to use?

    I was thinking to just rename the:

    Code:
    /home/nginx/domains/mydomain.com 
    to
    Code:
    /home/nginx/domains/mydomain.eu
    and:
    Code:
    /usr/local/nginx/conf/conf.d/mydomain.com.conf
    to
    Code:
    /usr/local/nginx/conf/conf.d/mydomain.eu.conf
    And in this .conf file to replace any line that has mydomain.com to mydomain.eu

    And the same also with:
    Code:
    /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf
    (don't know if certificates are working then)


    Or do you recommend me any other easier way?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should work but i do not recall any reference to other domains in /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf as that usually references the main hostname from step 1 in Getting Started guide
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    8:02 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Correct i didn't notice that was entries there for hostname only :)

    But if i also change hostname is it possible to get them work or i will mess it up most for phpmyadmin?

    Or is it better to create a new vhost and transfer all files there ?
     
    Last edited: Apr 9, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if change hostname for main vps, then yes change it at /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf too