2 Replies Latest reply: Oct 8, 2013 10:27 AM by William H. Magill1
William H. Magill1 Level 2 Level 2

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
Solved by John Lockwood on Oct 8, 2013 9:20 AM Solved

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 ".........">