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.

How to point a sub domain's cgi-bin to the root domain's cgi

Discussion in 'General Discussion' started by fog, Oct 11, 2002.

  1. fog

    fog Well-Known Member

    Joined:
    Jun 22, 2002
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    I have someone who needs to have their sub-domain's cgi-bin pointed to the cgi-bin of the root domain. Is this possible? Thanks
     
  2. parag

    parag Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    115
    Likes Received:
    0
    Trophy Points:
    16
    [quote:16dab8163d][i:16dab8163d]Originally posted by fog[/i:16dab8163d]

    I have someone who needs to have their sub-domain's cgi-bin pointed to the cgi-bin of the root domain. Is this possible? Thanks[/quote:16dab8163d]

    yes it is..

    you will need to edit your httpd.conf file

    find out the subdomain entry in the httpd.conf and then change the ScriptAlias path.

    your original will look something similar to the following one

    ScriptAlias /cgi-bin/ /home/domain/public_html/subdomain/cgi-bin/

    instead of that.. just have it in the following manner

    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/


    thats it..
    regards,
    Parag
     
  3. fog

    fog Well-Known Member

    Joined:
    Jun 22, 2002
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    Thanks Parag :D
     
Loading...

Share This Page