|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2011
/
2011-11
/
Directory with headrequire
[
TimeOut apparently not working in 2.5 and 2.6f / ... ]
[
Unsubsribe / Hall Barricklow ... ]
Directory with headrequire
Adrian Padilla <adrianp918(at)compumedik.com> |
2011-11-23 19:26:55 |
[ SNIP ]
|
this is what i have in my config file. my question is do i need to have
the asterisk before the sub domain like this
ListenHTTP
Address 192.168.4.6
Port 80
## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
xHTTP 0
service
headrequire "Host: .*filter.compumedik.com."
BackEnd
Address 192.168.4.26
Port 80
End
End
service
headrequire "Host: .*virus.compumedik.com."
BackEnd
Address 192.168.4.26
Port 80
End
End
Service
BackEnd
Address 192.168.4.26
Port 80
End
BackEnd
Address 192.168.4.27
Port 80
End
BackEnd
Address 192.168.4.28
Port 80
End
BackEnd
Address 192.168.4.29
Port 80
End
BackEnd
Address 192.168.4.30
Port 80
End
BackEnd
Address 192.168.4.31
Port 80
End
BackEnd
Address 192.168.4.32
Port 80
End
End
End
|
|
|
Re: [Pound Mailing List] Directory with headrequire
Dave Steinberg <dave(at)redterror.net> |
2011-11-23 20:19:48 |
[ SNIP ]
|
On 11/23/2011 1:26 PM, Adrian Padilla wrote:
> this is what i have in my config file. my question is do i need to have
> the asterisk before the sub domain like this
<snip>
> headrequire "Host: .*filter.compumedik.com."
"Need" ... no. But your regexp is a bit loose, you probably want to
adjust it since as written, it would match a hostname of
"thisisadumbfilter.compumedik.com". This is probably want you want:
HeadRequire "^Host:[ \t]*filter\.compumedik\.com$"
Regards,
--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
http://www.redterror.net/
|
|
|
Re: [Pound Mailing List] Directory with headrequire
Adrian Padilla <adrianp918(at)compumedik.com> |
2011-11-23 20:28:40 |
[ SNIP ]
|
ok i have made the changes you have said, so the way i had it aslong as
it has the word filter anything else can be added to it prior and it
would accept it...? that is not what i want
so i have made it look like this
HeadRequire "^Host:[ \t]*filter\.compumedik\.com$"
BackEnd
and hopefully only filter.compumedik.com will be there
On 11/23/2011 2:19 PM, Dave Steinberg wrote:
> On 11/23/2011 1:26 PM, Adrian Padilla wrote:
>> this is what i have in my config file. my question is do i need to have
>> the asterisk before the sub domain like this
>
> <snip>
>
>> headrequire "Host: .*filter.compumedik.com."
>
> "Need" ... no. But your regexp is a bit loose, you probably want to
> adjust it since as written, it would match a hostname of
> "thisisadumbfilter.compumedik.com". This is probably want you want:
>
> HeadRequire "^Host:[ \t]*filter\.compumedik\.com$"
>
> Regards,
|
|
|
|