Make Sub Domain in Server Windows

Discussion in 'Apache' started by acepsdr, Jan 13, 2009.

  1. #1
    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?
     
    acepsdr, Jan 13, 2009 IP
  2. acepsdr

    acepsdr Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    acepsdr, Jan 15, 2009 IP