Want to subscribe to topics you're interested in?
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 Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    12:12 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    8:12 AM
    Nginx 1.13.x
    MariaDB 5.5
    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 Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    12:12 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    8:12 AM
    Nginx 1.13.x
    MariaDB 5.5
    if change hostname for main vps, then yes change it at /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf too