2012/11/29 Leo Donahue - RDSA IT <leodona...@mail.maricopa.gov>:
> Reading the docs:  http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
>
> "..The web application used to process each HTTP request is selected by 
> Catalina based on matching the longest possible prefix of the Request URI 
> against the context path of each defined Context."
>
> (...)
>
> Would I create a context named directory1.xml such as the following?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Context antiResourceLocking="false" privileged="true" 
> path="/webapp1/directory1">

1. The path attribute is invalid here. The file name of the xml file
will be used as the path.

E.g. naming the file "webapp1#www#directory1.xml" and moving those
files into directory named /webapps/webapp1#www#directory1  is a way
to deploy such application.  Isn't it in the FAQ?

Anyway I think it would be easier for you to configure a
RemoteAddrFilter, as others suggested.

2. Unless you know what "privileged" is, do not use it.

>   <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>          allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
> </Context>

Best regards,
Konstantin Kolinko

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

Reply via email to