Skip to content

Instantly share code, notes, and snippets.

@telingadigital
Created February 12, 2018 10:45
Show Gist options
  • Save telingadigital/d15d5e709685c119f98f401300e1d2b5 to your computer and use it in GitHub Desktop.
Save telingadigital/d15d5e709685c119f98f401300e1d2b5 to your computer and use it in GitHub Desktop.
My Kind of Nginx Conf setting for Local Development on Windows
#user nobody;
worker_processes 5;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream;
include c:/nginx/conf/sites-enabled/*.conf;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment