Hi,

I am using tomcat 7.0.52.0 and I am trying to redirect the request from
http to https so I added to /etc/tomcat7/web.xml:

 <security-constraint>
    <web-resource-collection>
        <web-resource-name>Protected Context</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
   <user-data-constraint>
       <transport-guarantee>CONFIDENTIAL</transport-guarantee>
   </user-data-constraint>
 </security-constraint>

And it works for the localhost host. But I have two host in the
server.xml:

  <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
     ...
  </Host>
  <Host name="other.host" appBase="/srv/webapp" 
            unpackWARs="true" autoDeploy="true">
    ...
  </Host>

And it does not work for the "other.host" host. Also tried to put but
didn't work:

  <url-pattern>other.host/*</url-pattern>

My question is, how can I do to work in the "other.host" host but not in
the "localhost" host?

Thanks is advance for your help.

André Gomes



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

Reply via email to