Skip to content

Instantly share code, notes, and snippets.

@Irvyne
Last active August 29, 2015 14:15
Show Gist options
  • Save Irvyne/e1c86e1346bc6e4463be to your computer and use it in GitHub Desktop.
Save Irvyne/e1c86e1346bc6e4463be to your computer and use it in GitHub Desktop.
Configure Nginx conf file on MAC OSX
server {
listen 80;
server_name phpmyadmin.dev;
root /Users/irvyne/www/phpMyAdmin;
index index.php;
location / {
try_files $uri $uri/ =404;
}
#location @rewriteapp {
# rewrite ^(.*)$ /app_dev.php/$1 last;
#}
#location ~ ^/(index|app|app_dev|config)\.php(/|$) {
# #fastcgi_pass unix:/var/run/php5-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param HTTPS off;
#}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
access_log /Users/irvyne/www/logs/phpmyadmin_access.log;
error_log /Users/irvyne/www/logs/phpmyadmin_error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment