我希望在启用了Lua模块的情况下为nginx提供精简的Docker镜像.如何基于Alpine linux创建这个? 最佳答案 这是一个Dockerfile: FROM alpine:3.6 RUN apk add --no-cache nginx-mod-http-lua # Delete default config RUN rm -r /etc/nginx/conf.d &
nginx的官方:负载均衡示例:http://wiki.nginx.org/NginxChsLoadBalanceExample
我们项目中的应用 代码片段:
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
upstream ahmymyty {
ip_hash;
server 192.168.0.31:8085;
server 19...