docker-ubuntumirror/nginx.conf

46 lines
737 B
Nginx Configuration File

user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
error_log /dev/stdout info;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
# default, no host name
server {
listen 80 default_server;
charset utf-8;
server_name _;
root /var/mirror;
index index.html index.htm;
location /ubuntu/ {
# # alias, not root!
# # trailing slash important!
# alias /var/mirror/ubuntu/;
autoindex on;
}
}
}