Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create a sub domain like labs.7sisters.in for the folder with document root public_html/7sislabs . If I visit the site http://7sisters.in/7sislabs/ its working fine . But http://labs.7sisters.in , its showing something else ! I don't have the cgi-bin directory there .

share|improve this question

migrated from stackoverflow.com Dec 28 '11 at 8:05

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

1) In the case of "http://7sisters.in/7sislabs/", the web server should have a subdirectory "sislabs" under it's document root.

2) In the case of "http://labs.7sisters.in", your DNS should be configured to have some host "labs.7sisters.in", and the web server on that host should probably be configured for a virtual server "labs".

3) Each server and each virtual server can be configured to have its own cgi-bin (or any other resource directory), and the configuration may alias the same physical directory, or may point to different directories. Your choice :)

share|improve this answer
Thanks paulsm4...I didnt knew it . Thanks again – AssamGuy Dec 28 '11 at 5:35
My pleasure. Here's a short tutorial that gives you a flavor of setting up virtual servers on Apache. On IIS, of course, it's just point-and-click: ubuntu-tutorials.com/2008/01/09/… – paulsm4 Dec 28 '11 at 5:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.