docker - Nesting variables in Apache config -
i'm building docker-based apache proxy, , i'd proxied port configurable.
i link containers --link ...:proxied
, docker makes environment variables proxied_port_80_tcp_addr
, proxied_port_80_tcp_port
. used proxypass / "http://${proxied_port_80_tcp_addr}:${proxied_port_80_tcp_port}/"
reverse proxy port 80.
i'd port configurable command line, when start container. pass variable -e "port=..."
, , usable ${port} in apache config.
i've tried nest variables, ${proxied_port_${port}_tcp_addr}
without success, , using define plugin, still no luck.
Comments
Post a Comment