Learn about Centmin Mod LEMP Stack today
Register Now

Parking Domains

Discussion in 'Feature Requests & Suggestions' started by connectivityengineer, Feb 27, 2016.

  1. connectivityengineer

    connectivityengineer New Member

    15
    5
    3
    Feb 27, 2016
    Ratings:
    +10
    Local Time:
    5:19 PM
    1.9.12
    10
    I found another thread which spoke about "parking domains" (what cPanel calls the process) and it provides the correct answer - however...

    I would love to see if we could have the ability to park domains onto an existing vhost.


    for Non SSL sites - this is a pretty easy addition manually (even for SSL sites it actually isl NOT that hard) however if it were as simple as an option in the menu... i now our staff would be happy.

    In a WordPress Multi-User Environment (and others ) I am sure this would be a welcomed addition...
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,869
    11,482
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,834
    Local Time:
    7:19 AM
    Nginx 1.21.x
    MariaDB 10.x
    When you create a new nginx vhost domain via centmin.sh menu option 2 or /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 newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    For now to park domains onto existing vhosts, you'd need to edit and append to your server_name line in /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf the domains you want to park.

    Maybe in future could do this, but then unparking would also need to be setup
     
  3. connectivityengineer

    connectivityengineer New Member

    15
    5
    3
    Feb 27, 2016
    Ratings:
    +10
    Local Time:
    5:19 PM
    1.9.12
    10
    Gotcha - its easy enough to do - been doing for some time - but having it as an option in the menu would be awesome.
    As would the removal as well (of course thats just clean up worse case if not...)

    Wonder if I could pay a bounty for it ;-)

    Thanks for the quick response...

    For me its a want / not exactly a pure need - but sure would make our hosting stuff much easier :)