Create subdomain: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
Config Site: | Config Site: | ||
{{code|cd /etc/apache2/sites-available}} | |||
Let it at minimum look like this:{{code|cat yourSubDomain.yourDomain.tld.conf}} | |||
New Config: | |||
{{code|cp 000-default.conf yourSubDomain.yourDomain.tld.conf}} | |||
Let it at minimum look like this: | |||
{{code|cat yourSubDomain.yourDomain.tld.conf}} | |||
{{code|<VirtualHost *:80>}} | {{code|<VirtualHost *:80>}} | ||
{{code|ServerName yourSubDomain.yourDomain.tld}} | {{code|ServerName yourSubDomain.yourDomain.tld}} | ||
{{code|DocumentRoot /path/to/your/subdomain/source}} | {{code|DocumentRoot /path/to/your/subdomain/source}} | ||
{{code|</VirtualHost>}} | {{code|</VirtualHost>}} | ||
Restart Apache:{{code|service apache2 restart}} | Enable site: | ||
{{code|a2ensite yourSubDomain.yourDomain.tld.conf}} | |||
Restart Apache: | |||
{{code|service apache2 restart}} | |||
==== HostEurope DNS Config: ==== | |||
# Log into KIS | |||
# Produktverwaltung | |||
# Domainservices | |||
# Domain-Administration | |||
# Nameserver- / DNS-Eintraege bearbeiten | |||
# Edit your chosen Domain | |||
# Create new "A-Record" with the subdomain name... linked to the Domain IP |
Revision as of 17:42, 16 April 2023
How to make a new subdomain on a Debian VPS (Host Europe), with an apache2
Apache Config:
Config Site:
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>
ServerName yourSubDomain.yourDomain.tld
DocumentRoot /path/to/your/subdomain/source
</VirtualHost>
Enable site:
a2ensite yourSubDomain.yourDomain.tld.conf
Restart Apache:
service apache2 restart
HostEurope DNS Config:
- Log into KIS
- Produktverwaltung
- Domainservices
- Domain-Administration
- Nameserver- / DNS-Eintraege bearbeiten
- Edit your chosen Domain
- Create new "A-Record" with the subdomain name... linked to the Domain IP