Created
December 14, 2011 07:12
-
-
Save jie/1475583 to your computer and use it in GitHub Desktop.
spawn-fcgi and nginx
This file contains hidden or 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; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { | |
charset utf-8; | |
include mime.types; | |
default_type application/octet-stream; | |
keepalive_timeout 65; | |
proxy_read_timeout 200; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
gzip on; | |
gzip_min_length 1000; | |
gzip_proxied any; | |
gzip_types text/plain text/css | |
application/x-javascript application/xml | |
application/atom+xml text/javascript; | |
upstream syyyln.com { | |
server 127.0.0.1:9000; | |
} | |
server { | |
listen 80; | |
server_name APPLICATION_DOMAIN; | |
index index.php; | |
root /var/www/APPLICATION_DIR; | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME /var/www/APPLICATION_DIR$fastcgi_script_name; | |
include /etc/nginx/conf/fastcgi_params; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment