We have server windows and using the apache. This server already connected to a domain (example www.mysite.com). We need make some sub domain, but I don't know how configure this. example: I want make a subdomain "portal.mysite.com". So how do make and configure for this case?
I finish setup host file from windows directory like this: 127.0.0.1 kantor.com 127.0.0.1 www.kantor.com 127.0.0.1 new.kantor.com And I finished to configure Virtual Host like this: <VirtualHost *:80> ServerAdmin ldomain DocumentRoot "C:\xampp\htdocs" ServerName localhost ServerAlias *.localhost ErrorLog logs/error.log CustomLog logs/access.log common </VirtualHost> <VirtualHost *:80> ServerAdmin ldomain DocumentRoot "C:\xampp\htdocs" ServerName localhost.localdomain ServerAlias *.localhost.localdomain ErrorLog logs/error.log CustomLog logs/access.log common </VirtualHost> <VirtualHost *:80> ServerAdmin DocumentRoot "C:\xampp\htdocs\new" ServerName new.kantor.com ServerAlias *.new.kantor.com ErrorLog logs/error.log CustomLog logs/access.log common </VirtualHost> Problem: if I ping from DOS prompt in windows www.kantor.com, it's IP Address is true our server. but if I ping kantor.com (not use www), it's IP address wrong (not our server) Please help me, PS: kantor.com it's alias name and not really our site address.