Chuck Risher

Q: Unable to change location of website folder

Greetings,

 

When I change the location of the Websites folder in the Server app by changing "Store Site Files In:", the files in the default location continue to be loaded and not the ones in the location I specified. The location I set is saved in the Server app. I can quit the Server app and launch it again and see the location I specified, but it does not use that location.

 

Thanks

MacBook Pro, OS X Mavericks (10.9.5), MacBook Pro (13-inch, Mid 2012)

Posted on May 29, 2016 7:13 PM

Close

Q: Unable to change location of website folder

  • All replies
  • Helpful answers

  • by Leopardus,

    Leopardus Leopardus May 30, 2016 12:45 AM in response to Chuck Risher
    Level 4 (1,122 points)
    Desktops
    May 30, 2016 12:45 AM in response to Chuck Risher

    Read https://help.apple.com/serverapp/mac/5.1/#/apd1AB74EDF-C5B3-4C20-AD02-42120FF3B2 08 and try to stick to these principles as closely as possible.

     

    The steps underneath does not include the methodology to change the location of the root folder, as Apple has as it's focus not exactly that.

    Add or change webpages on your website

    To change what’s available on the website, change the files in your website’s document root folder. The document root folder is the folder that contains your website files.

    Use the Server app to find your website’s document root. The default document root is /Library/Server/Web/Data/Sites/Default/. Also, when you create a site and let the Server app automatically create a new folder for you, it places the site files in /Library/Server/Web/Data/Sites/domainname/.

    1. Select Websites in the Server app sidebar.
    2. Select the website, then click the Edit button edit.
    3. Click the arrow to the left of the Store Site Files In pop-up menu.The Finder opens to the document root location. Change the files in this folder to change what’s available on the website.

      

    They wanted to provide a foolproof server from where effective MDM can be performed. Therefore they went to great lengths to ensure that it must not be messed around with. The integrity of the services that ensures the effective management of Apple devices are paramount.

     

    Therefore, I think that you wrongfully try to move that part of the services and Server would not allow you to do that, as Profile Manager and Wiki still have to work after you configured to host your websites (which Apple documentation refers to as Virtual Hosts).

     

    Thus you have to configure the 'Virtual Hosts' with their document root.

     

    HTH

     

    Leo

     

    Edit: If you would read : /Library/Server/Web/Config/apache2/ReadMe.txt

    and scroll down to sites you would understand more.