PHP w/ several different ServerRoot setting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    PHP w/ several different ServerRoot setting

    I'm a web designer and I would like to know if possible to set up multiple ServerRoot.
    Reason I have serveral websites and I would like each website with its own ServerRoot. If so how do I set up the httpd.conf page.

    thanks
    nomad
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    You can achieve this by creating Virtual Host. Open you httpd.conf and search for VirtualHost.

    A sample example can be

    <VirtualHost mycomputername: 80>
    DocumentRoot D:\Development\ sites\client1
    ServerName mycomputername
    </VirtualHost>

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, nomad.

      You can set this up using Virtual Hosts.

      For more information, check out Apache's Virtual Host Documentation

      PS. Moving to the Apache forum....

      [EDIT: Curses! Somebody beat me to it! Well, I'm still getting a post credit for this!]

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Originally posted by nomad
        I'm a web designer and I would like to know if possible to set up multiple ServerRoot.
        Reason I have serveral websites and I would like each website with its own ServerRoot. If so how do I set up the httpd.conf page.

        thanks
        nomad
        thanks for the tips everyone.
        nomad

        Comment

        Working...