Nginx server deployed mirror, so adding a log to view, add about static pages to download.
1, view mirror how nginx deployment
Nginx: Image: Nginx the ports: - '80: 80 ' Volumes: - "/ etc / localtime: / etc / localtime: RO" -' ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro ' - './nginx/conf.d:/etc/nginx/conf.d:ro' - './nginx/www:/usr/share/nginx/html:ro' - './nginx/log:/var / log / nginx '(: ro is read-only can not write) restart: Always
2, modify the file nginx.cof
ON tcp_nopush; keepalive_timeout 60; gzip ON; # enable gzip compression gzip_buffers 16 8K; gzip_comp_level. 5; # compression level, 1--9, the larger the number, the better the compression, the more CPU time gzip_min_length 100; # minimum compressed file size, less than the set value of the file will not be compressed gzip_proxied the any; gzip_types text / Plain text / text CSS / JavaScript; # compression type, mime.types file can be viewed gzip_vary on; # whether to add Vary in the http header: Accept-Encoding, is recommended open Server { the listen 80; # listening port server_name localhost; # nginx virtual host name, IP or domain #charset KOI8-R & lt; #access_log logs / main host.access.log; LOCATION / { root / usr / report this content share / nginx / HTML / download; index index.html; } location /android { alias www/android; autoindex on; } location /ios { alias www/ios; autoindex on; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
3, view the log exists, opening the page testing
Test no problem.