Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    316
    [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:
    166
    Thanks Parag :D
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice