<snip>
In nginx I was able to include directories with the statements:
include /tmp/nginx/conf.d/*.conf; include
/opt/etc/nginx/conf.d/*.conf;
Because pound works with only one file (AFAIK), my shell script needs
to write the whole configuration file, which is far from elegant.
Maybe I can use patch....
Or 'cat' or m4. More below.
My question is:
Does pound support more than 1 config-file for 1 listen session? If
so... how? If not... could this be incorporated?
I don't fully understand your question, but let me give you a rough
outline of what I think would do what you're asking:
=== header.conf ====
User "proxy"
Group "proxy"
RootJail "/var/pound"
Alive 15
TimeOut 120
LogLevel 5
Daemon 1
Control "/tmp/pound.sock"
DynScale 0
ListenHTTP
# localhost, for testing
Address a.b.c.d
Port 80
RewriteLocation 0
HeadRemove "X-Forwarded-Proto"
End
===
=== dom1.conf ====
### special handling for *.check*.geekisp.com
Service "foo1"
HeadRequire "^Host:[ \t]*foo\.bar\.com$"
Backend
Address backend_1
Port 80
end
end
===
=== dom2.conf ===
Service "baz"
HeadRequire "^Host:[ \t]*baz\.bar\.com$"
Backend
Address backend_1
Port 81
end
end
===
That's it. Just 'cat' them all together and you get your pound.conf
file. This would send requests to foo.bar.com to "backend_1" on port 80
and requests to "baz.bar.com" to backend_1 on port 81.
Regards,
--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.