Skip to content

Instantly share code, notes, and snippets.

@chenshuo
Created March 3, 2012 17:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenshuo/1967026 to your computer and use it in GitHub Desktop.
Save chenshuo/1967026 to your computer and use it in GitHub Desktop.
nginx conf using http echo module for '/hello'
#user nobody;
worker_processes 4;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location /hello {
default_type text/plain;
echo "hello, world!";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment