Re: [squid-users] Howto make Squid config dependent on hostname?

2022-09-17 Thread Hildegard Meier
> It is a poorly worded reference to "#line" directives used by some > programming languages for documenting the original location of lines in > preprocessed files. Here are the corresponding C++ preprocessor docs, > for example: https://en.cppreference.com/w/cpp/preprocessor/line I guess it would

Re: [squid-users] Howto make Squid config dependent on hostname?

2022-09-16 Thread Hildegard Meier
I found about man squid -f file Use the given config-file instead of /etc/squid/squid.conf . If the file name starts with a ! or | then it is assumed to be an external command or command line. Can for example be used to pre-process the configuration before it i

Re: [squid-users] Howto make Squid config dependent on hostname?

2022-09-16 Thread Hildegard Meier
> > node1:/etc/hosts > ... > 192.0.2.1 node1.example.com > 192.0.2.2 node2.example.com peer-cache-node.example.com > ... > > node2:/etc/hosts > ... > 192.0.2.1 node1.example.com peer-cache-node.example.com > 192.0.2.2 node2.example.com > ... Thanks, but having indiv

Re: [squid-users] Howto make Squid config dependent on hostname?

2022-09-16 Thread Hildegard Meier
> Squid currently only supports three kinds of conditions: true, > false, and integer equality comparison (as documented). I think it would be very good to give some concrete examples of how one can use the if-condition. The current abstract and vague "documentation" is totally unclear to me. >

[squid-users] Howto make Squid config dependent on hostname?

2022-09-15 Thread Hildegard Meier
Hello, we have two Squid servers (Linux hosts) and each shall have the very same config file /etc/squid/squid.conf which is versioned and deployed from a central deployment server. So each host shall have deployed the same files. Each of the two shall have the other configured as sibling cache p