Skip to content

Instantly share code, notes, and snippets.

@jsahlen
Created February 3, 2012 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsahlen/1730188 to your computer and use it in GitHub Desktop.
Save jsahlen/1730188 to your computer and use it in GitHub Desktop.
nameserver 127.0.0.1
port 20560
<?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>Label</key>
<string>net.php.php-fpm</string>
<key>RunAtLoad</key>
<true/>
<key>User</key>
<string>jsahlen</string>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/Cellar/php/5.3.8/sbin/php-fpm</string>
</array>
<key>WorkingDirectory</key>
<string>/usr/local</string>
</dict>
</plist>
server {
server_name *.dev;
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:20559;
}
}
server {
server_name wordpress.dev; # set to your desired hostname
root /Users/jsahlen/Sites/wordpress; # the document root
location / {
index index.php;
}
# pass the PHP scripts to our php-fpm server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment