by bcladmin September 11, 2024

Step 1: Create a new directory for your subdomain mkdir -p /var/www/subdomain.domain.com/public_html Step 2: Set the correct permissions for the new directory chown -R www-data:www-data /var/www/subdomain.domain.com/public_html Step 3: Create a new virtual host