Created
August 31, 2014 22:41
-
-
Save rochacon/387ee88dceb2644f8119 to your computer and use it in GitHub Desktop.
Simple NGINX conf that I use inside Docker containers for testing
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
daemon off; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
access_log /dev/stdout; | |
error_log /dev/stdout info; | |
default_type application/octet-stream; | |
include mime.types; | |
gzip on; | |
keepalive_timeout 65; | |
sendfile on; | |
tcp_nopush on; | |
server { | |
listen 80; | |
server_name localhost; | |
charset utf-8; | |
index index.html; | |
root /usr/local/nginx/html; | |
try_files $uri $uri/ @default; | |
location @default { | |
return 200; | |
} | |
location /nginx_status { | |
stub_status on; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment