Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created December 29, 2010 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/758934 to your computer and use it in GitHub Desktop.
Save mrchrisadams/758934 to your computer and use it in GitHub Desktop.
php files keep being downloaded like binaries. Why would this be?
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type text/html;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
root html;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location / {
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass localhost:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
server {
listen 8080;
server_name api.drupal.local;
root /Users/chrisadams/Code/drupal-api;
location / {
index index.html index.htm;
}
location ~ \.php$ {
root /Users/chrisadams/Code/drupal-api;
fastcgi_pass localhost:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment