On my Vserver Id like to configure a subdomain. So I have the following entries in my apache vhost config. I want to have my site app1.example.com to run as own site, so that pages and files have the domain e.g. app1.example.com/photo.jpg or app1.example.com/blog/.
<VirtualHost *:80>
DocumentRoot /var/www/app1
ServerName app1.example.com
<VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/example
ServerName example.com
<VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/wildcard
ServerName other.example.com
ServerAlias *.example.com
<VirtualHost>
But WHY do I need a DNS like this additionally? Dont I set this already in my vhost config?
Host Type Destination
app1 A 78.xx.xx.xx (my IP)
* A 78.xx.xx.xx
Or do I need to point the destination to a directory like this: app1.example.com Thx for advise!