I got configuration syntax error in httpd.conf.. dont' know why. We have three ips pointing to the /var/www/html. I would like to make one ip for /var/www/mydomain.com. I add the following line in httpd.conf and make /var/www/mydomain.com owned by apache. but I still got error.
<VirtualHost xxx.xxx.xx.xx>
ServerAdmin
webmaster@mydomain.com
DocumentRoot /var/www/mydomain.com
#ServerName blahblah
ErrorLogs logs/mydomain.com-error_log
accessLogs logs/mydomain.com-access_log
</VirtualHost>
P.s
1) I got syntax error be it commend that line of ServerName out or not.
2) I don't run my own DNS server. I have an A-record pointing to that ip by my Domain name provider.
Please help! Thanks in advance.