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

Reply
2 replies

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Switching from "a standard" Apache install to OSX Server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.