Hi,
The host is not present in the URL in HTTP (in this context at least
-- it's a different matter with an "explicit" proxy). So you have to
use HeadRequire. However there can be (and there usually are) spaces
between the Host: and the domain, and you don't want to match other
headers than might end up with "Host".
The "right" syntax is thus probably rather:
HeadRequire "^Host:\s*www.example.tld"
Jacques.
At 21:54 20/10/2009, Eric B. wrote:
Hi,
I was reading through the man pages and was trying to figure out the best
way to define a virtual host in Pound. The was I see it, I have 2 options:
1) Specify a URL pattern in my Service
2) Specify a HeadRequire Host: pattern in my Service
Ex:
Service
URL ".*//demo.domain.com.*"
End
or
Service
HeadRequire "Host:demo.domain.com.*"
End
Is there an advantage of using one vs the other? Or should I use both?
What advantage, if any, does the URL give over the HeadRequire instruction?
Thanks,
Eric
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.