-
-
Save jsahlen/1730188 to your computer and use it in GitHub Desktop.
Configuration files for my blog post http://monospace.se/posts/mac-frontend-development-environment
This file contains 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
nameserver 127.0.0.1 | |
port 20560 |
This file contains 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//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> |
This file contains 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
server { | |
server_name *.dev; | |
location / { | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:20559; | |
} | |
} |
This file contains 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
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