tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier (tomcat) ...@ice-sa.com>
Subject Re: Remote Address/Host Filter per connector ..
Date Thu, 07 Jul 2016 13:16:52 GMT
On 07.07.2016 15:05, Konstantin Kolinko wrote:
> 2016-07-07 12:57 GMT+03:00 Amit Pande <Amit.Pande@veritas.com>:
>> Hello all,
>>
>>
>> In my server.xml, within in single Service element,
>>
>> I have two HTTP connectors defined listening on two different ports (12345
>> & 54321 for example).
>>
>> It is possible to apply the remote address/host filter so that request to
>> one of the ports (12345) are allowed only via localhost ? And requests to
>> other port (54321) are allowed from everywhere.
>>
>>
>> Or do I need to configure multiple service elements for this type of
>> requirement ?
>
>
> It is possible to filter by port number, see "addConnectorPort"
> attribute of the valve,
> http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Remote_Address_Filter

Yes, but what the OP wants to do, finally, is to filter accesses to some /applications/.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message