Created
March 3, 2012 17:01
-
-
Save chenshuo/1967026 to your computer and use it in GitHub Desktop.
nginx conf using http echo module for '/hello'
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
#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