Create subdomain
Jump to navigation
Jump to search
How to make a new subdomain on a Debian VPS (Host Europe), with an apache2
Apache Config:
cd /etc/apache2/sites-available
New Config:
cp 000-default.conf yourSubDomain.yourDomain.tld.conf
Let it at minimum look like this:
cat yourSubDomain.yourDomain.tld.conf
<VirtualHost *:80>
Enable site:
a2ensite yourSubDomain.yourDomain.tld.conf
Restart Apache:
service apache2 restart