Created
December 29, 2010 19:26
-
-
Save mrchrisadams/758934 to your computer and use it in GitHub Desktop.
php files keep being downloaded like binaries. Why would this be?
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
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