Learn about Centmin Mod LEMP Stack today
Become a Member

How to add vhost domain.com and blog on domain.com/blog

Discussion in 'Install & Upgrades or Pre-Install Questions' started by adamus007p, Sep 23, 2025.

  1. adamus007p

    adamus007p Member

    378
    19
    18
    Feb 8, 2019
    Ratings:
    +38
    Local Time:
    5:13 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: AlmaLinux 9
    • Centmin Mod Version Installed: i.e. 132.00stable
    • Nginx Version Installed: i.e. 1.27.5
    • PHP Version Installed: i.e. 8.3.25
    • MariaDB MySQL Version Installed: 10.6.22



    I have a ecommerce on main root domain - domain.com
    On download.com/blog I have Wordpress blog.

    How to add this two domains vhosts?

    First I can use option 22 and add Wordress vhoost on domain.com/blog
    but how to add a second one? domain.com.

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,904
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:13 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    if you used centmin.sh menu option 22 for domain.com/blog, then nginx vhost = domain.com so you don't need to add another nginx vhost as web root is in /home/nginx/domains/domain.com/public and blog at /home/nginx/domains/domain.com/public/blog, all you do is upload your ecommerce files to that nginx vhost /home/nginx/domains/domain.com/public directory