ht-docker-static/nginx/patched/nginx.conf

65 lines
1.1 KiB
Nginx Configuration File
Raw Permalink Normal View History

2016-01-01 00:35:00 +00:00
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
2016-01-01 00:07:44 +00:00
}
2016-01-01 00:35:00 +00:00
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
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 /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 80 default_server;
root /srv/html/;
index index.html index.htm index.php;
location / {
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\.git {
deny all;
}
2016-01-01 00:07:44 +00:00
}
2016-01-01 00:35:00 +00:00
}