Learn about Centmin Mod LEMP Stack today
Become a Member

Domains How to add dev.domain-name.com

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Itworx4me, Mar 10, 2025.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    12:41 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    @eva2000
    I have a dev folder setup in my domain.com folder. /home/nginx/domains/domain-name.com/public/dev. How can I get my domain name to point to this: https://dev.domain-name.com?


    Thanks,
    Itworx4me
     
  2. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    12:41 PM
    Nginx 1.27.4
    MariaDB 10.6.21
  3. eva2000

    eva2000 Administrator Staff Member

    54,864
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    5:41 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Easiest way is create a new nginx vhost domain via centmin.sh menu option 2, 22 or nv command line for dev.domain-name.com, thd edit its nginx vhost config files root directive for Web root to /home/nginx/domains/domain-name.com/public/dev and restart nginx server. This way you get own SSL certificate, logging etc. Or keep the root directive and symlink to /home/nginx/domains/domain-name.com/public/dev directory