William H. Magill1

Q: Switching from "a standard" Apache install to OSX Server

I've been runing Apache via Mac Ports, which has a document root of

           /usr/local1/apache2/documents

 

1- Short of moving the entire document tree to somplace else, how can one activate that tree via the Server GUI?

 

"/usr" is not visible in the finder pop-up which is presented when you click on "Server Website" and attempt to set "Store Site files in:"

 

2- Where would "someplace else be? -- simply inserting an index.html file in /lLbrary/Server/Web/Data/Sites/Default is not going to deal with references to Document Root.

 

OSX 10.8.5

Server 2.2.2

iMac, OS X Mountain Lion (10.8.2), iMac Core i7 2.93GHz 4GB

Posted on Oct 7, 2013 11:46 AM

Close

Q: Switching from "a standard" Apache install to OSX Server

  • All replies
  • Helpful answers

  • by John Lockwood,Solvedanswer

    John Lockwood John Lockwood Oct 8, 2013 9:20 AM in response to William H. Magill1
    Level 6 (9,324 points)
    Servers Enterprise
    Oct 8, 2013 9:20 AM in response to William H. Magill1

    Create a dummy website in Server.app and specify a location you can access. Then edit the corresponding file using a text editor to point it to the real location i.e. /usr/local1/apache2/documents.

     

    The file you need to edit would be in /Library/Server/Web/Config/apache2/sites/ and the file would have to places you need to edit. The first is labelled DocumentRoot and the second is labelled <Directory ".........">

  • by William H. Magill1,

    William H. Magill1 William H. Magill1 Oct 8, 2013 10:27 AM in response to John Lockwood
    Level 2 (210 points)
    Mac OS X
    Oct 8, 2013 10:27 AM in response to John Lockwood

    Thanks... as they say... duh... obvious... (after the fact).