Created
January 19, 2017 04:15
-
-
Save e28eta/92e178f4f8c51575f27d910c599c834e to your computer and use it in GitHub Desktop.
Per [HT205290](https://support.apple.com/en-us/HT205290), every time Xcode service is restarted, or Server.app is updated, Apache will redirect `GET /` to `GET /xcode/` Which is something I definitely don't want on a shared web server. I think this launchd plist will automatically prevent that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.djackson.XcodeRedirectDisable</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-c</string> | |
<string>[[ -a COM.APPLE.WEBAPP.XCODE.conf ]] && mv COM.APPLE.WEBAPP.XCODE.conf COM.APPLE.WEBAPP.XCODE.conf.disabled</string> | |
</array> | |
<key>WatchPaths</key> | |
<array> | |
<string>/Library/Server/Web/Config/apache2/other</string> | |
</array> | |
<key>WorkingDirectory</key> | |
<string>/Library/Server/Web/Config/apache2/other/</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment