The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomain pointing

Discussion in 'General Discussion' started by GenGoku, Oct 31, 2001.

  1. GenGoku

    GenGoku Member

    Joined:
    Oct 10, 2001
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    have subdomain point somewhere else?

    is there a way to manually tell where the subdomain should point to?

    ex: I have a forum and it is located at forum.domain.com or domain.com/forum

    lets say i wanna \"errorcheck\" users. if someone types forums.domain.com they will get an error. Is there a way i can make forums.domain.com -> forum.domain.com?

    More fun with sub-domaining:

    ex: I have subdomain vnc.domain.com which points to my home IP#

    ex: I have rules.domain.com but do not want it in domain.com/rules but rather in domain.com/info/rules

    ex: I have a site w/ stuff on ebay. i want to make ebay.domain.com and want it to go to ebay.com/my/items/for/sale.html

    thanks

    (not making meta refresh or php refreshes. my dir structure will look too messy w/ all those un-needed sub dirs)



    [Edited on 10/31/01 by GenGoku]
     
  2. Scott Sneddon

    Scott Sneddon Registered

    Joined:
    Nov 3, 2001
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Can you make a symbolic link on your host? just

    ln -s domain.com/rules domain.com/info/rules

    you\'ll need shell access for this, and you\'ll still have to keep the domain.com/rules directory but it may make your life easier to work out of the domain.com/info/rules directory.

    you can probably also accomplish this using mod_rewrite in your .htaccess file (if you have access to that. (Good luck with the documentation though. Check the apache site).

    Of course if you had access to the httpd.conf, then you could make you own VirtualHost entries.

    Good luck,

    Scott.
     
  3. GenGoku

    GenGoku Member

    Joined:
    Oct 10, 2001
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    what does cpanel edit to create the subdomains?

    n/m. i think i found it

    rats, cant edit it ;p (httpd.conf)

    is it really impossible for cpanel to modify more than 1 domain with a single account? i would think that doing http://domain.com/cpanel would redirect it to the proper domain to edit even if only 1 account exists.

    the way it is setup now is

    ~/LoginName/public_html/ <--primary domain
    ~/LoginName/public_html/domain2.com <--2ndary domain (it\'s just mapped in httpd.conf)

    [Edited on 11/3/01 by GenGoku]
     
Loading...

Share This Page