#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Posts
    3
    Rep Power
    0
    I want to configure a subdomain in my server..like http://user.domain.com
    It should point to another folder htdocs/users instead of htdocs.
    I have try <virtualhost> in my httpd.cong file but it doesnt work, i heard something about CNAME. Is cname what it needs to have changes? what is and where is that cname?

    Can somebody help me with this?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Location
    Chalfont
    Posts
    9
    Rep Power
    0
    I would like to do the same thing on my server and have not been able to figure out how to do it. Could someone please help us out? Thanks!
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    19
    Rep Power
    0
    I am trying to do the same thing. Could somebody please help?

    Thanks in advance,

    Bakassi.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Melbourne, Victoria, Australia
    Posts
    104
    Rep Power
    14
    I have done it many times (successfully) using the example config that comes near the end of httpd.conf.

    example (works for me anyway )

    <VirtualHost sub.domain.com>
    ServerAdmin webmaster@domain.com
    DocumentRoot /usr/www/sub.domain.com/
    ServerName sub.domain.com
    ErrorLog /usr/local/apache/logs/sub.domain.com_error_log
    </VirtualHost>

    And vhola, it works for me.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    One way, I have done this is to create a new virtual host directive.

    For example,
    <VirtualHost 172.5.43.23>
    ServerName sub.domain.net
    DocumentRoot /home/siteuser/public_html/
    </VirtualHost>

    Want to forward it to another domain? No problem...

    <VirtualHost 172.5.43.23>
    ServerName sub.domain.net
    Redirect / http://www.otherdomain.com
    </VirtualHost>

    Best regards,
    Frank
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Posts
    3
    Rep Power
    0
    Thanks four your help, the <virtualhost> is working perfect, but one thing i cant do is to give @otherdomains.com mail to people.
    Anyone can help me with this.

    Regards.

IMN logo majestic logo threadwatch logo seochat tools logo