OS X Server: Allowing custom URL protocols in links via wiki service
Learn how to enable custom URL protocols for the Lion Server Wiki service (so they become clickable links on a wiki page).
Lion Server, OS X Server (Mountain Lion)
By default, links in a wiki page that use common URL protocols such as http, ftp, and so forth are already clickable.
If you wish to create links containing a custom protocol, such as irc or scp, follow the directions below.
- Create whitelist_file per the version of OS X Server you're using.
On Lion Server, whitelist_file refers to /etc/collabd/filter_whitelist.plist.
On OS X Server (Mountain Lion), whitelist_file refers to /Library/Server/Wiki/Config/whitelist.plist.
- Use the guidelines in How to edit configuration files to add this content to the file:
- Verify that the file's syntax is correct. An easy way to do so is by using the plutil(1) command:
- Ensure that the permissions on the file are such that it will be accessible to the wiki service:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>protocols</key> <array> <string>irc</string> <string>scp</string> </array> </dict> </plist>
sudo chown _teamsserver:_teamsserver whitelist_file sudo chmod 644 whitelist_file