I registered a domain in GoDaddy.I setup a few items in my A records:
subdomain.mydomain.com 188.8.131.52 mydomain.com 184.108.40.206 www.mydomain.com 220.127.116.11
In my ubuntu server apache virtual host setting:
subdomain.mydomain.com -> /var/www/subdomain mydomain.com -> /var/www/public_html
It works. But there is an issue. When I key in an ip address in my browser, the /var/www/ directory will be listed.My question is how can I configure to redirect the ip address to /var/www/public_html and disable /var/www directory listing?