docker-ubuntumirror/nginx.conf

46 lines
740 B
Nginx Configuration File
Raw Normal View History

2016-04-11 01:38:47 +00:00
user www-data;
2016-04-08 20:41:48 +00:00
worker_processes auto;
pid /var/run/nginx.pid;
2020-02-16 14:05:16 +00:00
error_log /dev/stdout info;
2016-04-08 20:41:48 +00:00
events {
worker_connections 1024;
}
http {
2020-02-16 14:05:16 +00:00
access_log /dev/stdout;
2016-04-08 20:41:48 +00:00
include /etc/nginx/mime.types;
default_type application/octet-stream;
2016-04-11 01:38:47 +00:00
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
2016-04-08 20:41:48 +00:00
# default, no host name
server {
listen 80 default_server;
charset utf-8;
server_name _;
root /var/mirror;
2016-04-08 20:41:48 +00:00
index index.html index.htm;
#location /ubuntu/ {
# # alias, not root!
# # trailing slash important!
# alias /var/mirror/ubuntu/;
# autoindex on;
#}
2016-04-08 20:41:48 +00:00
}
}