Skip to content

Instantly share code, notes, and snippets.

@gabetax
Created May 26, 2010 15:31
Show Gist options
  • Save gabetax/414638 to your computer and use it in GitHub Desktop.
Save gabetax/414638 to your computer and use it in GitHub Desktop.
Modification of /System/Library/LaunchDaemons/org.apache.httpd.plist for passing in strings for the built-in MacOSX (10.6 Snow Leopard and 10.7 Lion) Apache
<?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>Disabled</key>
<true/>
<key>Label</key>
<string>org.apache.httpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/httpd</string>
<string>-D</string>
<string>FOREGROUND</string>
<string>-D</string>
<string>DEVELOPMENT_SERVER</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>SERVER_ENV</key>
<string>development</string>
</dict>
<key>OnDemand</key>
<false/>
<key>SHAuthorizationRight</key>
<string>system.preferences</string>
</dict>
</plist>
@awrowse
Copy link

awrowse commented Dec 29, 2012

Note. Works for 10.8.2 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment