1

apache 2 - how to access "mydomain.com" OR "www.mydomain.com"

view story
linux-howto

http://serverfault.com – I've recently set up a domain name through godaddy.com. I edited my A record to point to my servers IP address. I then set up a sites-available file and symlinked that to the site-enabled directory. When I go to the url "mydomain.com" I get the index.html file in /var/www/index.html which just says "No Direct Access." When I go to the url "www.mydomain.com" I get my app properly. My sites-available file for the domain is fairly basic, looks like: <VirtualHost *:80> ServerName www.mydomain.com DocumentRoot /path/to/my/app <Directory /> .... </Direct (HowTos)