docker-ubuntumirror/nginx.conf

46 lines
729 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;
events {
worker_connections 1024;
}
http {
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/empty;
index index.html index.htm;
location /ubuntu/ {
2016-04-11 01:38:47 +00:00
# alias, not root!
# trailing slash important!
alias /var/mirror/ubuntu/;
2016-04-08 20:41:48 +00:00
autoindex on;
}
2016-04-11 01:38:47 +00:00
location / {
deny all;
}
2016-04-08 20:41:48 +00:00
}
}