Am trying to serve all pages on a tomee server as https - have tried 1.7.4
and 7.1.0.  The redirects happen ok, but they return a 302 (temporary)
rather than 301 (permanent) response....so pages ignored by Google etc..

Have also tried version 7.0.70 of tomcat by adding...

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

to the web.xml

and 

      <Realm className="org.apache.catalina.realm.NullRealm"
transportGuaranteeRedirectStatus="301" /> 

(as well as the 8080/8443 Connectors)

to the server.xml - this works great...until I drop the tomee.war file
in...then it goes back to 302...

Any help gratefully received...am not in a good place - thanks in advance
for any help



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html

Reply via email to