I am not sure if this question belongs here.
I have got a new server. It provides three IP addresses. There is a DNS manager where I can setup domain name at a particular IP. Done successfully, and added domain using virtual host. Its working fine.
Now, I want to create a subdomain. As I said, there is no A/AAAA record option in dashboard (which I got from my previous host). I am trying to add subdomain using virtualhost, but it doesn't work.
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin *********gmail.com
ServerName sub.domain.com
ServerAlias sub.domain.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.php
DocumentRoot /home/ApacheWebsites/subdomain
# Custom log file locations
LogLevel warn
ErrorLog /home/ApacheWebsites/logs/error.log
CustomLog /home/ApacheWebsites/logs/access.log combined
<Directory /home/ApacheWebsites/subdomain/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
allow from all
</Directory>
</VirtualHost>
So my questions are :
1) Does A record matters while creating subdomain ?
2) Does having different IP address for different domains matters while creating subdomain for a domain name ?
3) Solution ?