현재 아파치없이 바람둥이 6 및 봄 보안 3.0.3.RELEASE를 사용하고 있습니다.봄 보안의 일부 페이지에 https를 강제로 적용 할 수 있습니까?
로그인 페이지에 https를 적용 할 수 있습니다. 정상적으로 작동합니다.
다음 구성은 http로 일부 페이지에 액세스하지 못하도록하는 데 사용됩니다.
<http use-expressions="true">
<intercept-url pattern="/" access="permitAll" />
<intercept-url pattern="/login" access="permitAll" requires-channel="https" />
<intercept-url pattern="/spring_security_login" access="permitAll" requires-channel="https" />
<intercept-url pattern="https://stackoverflow.com/users/new" access="permitAll" requires-channel="https" />
<intercept-url pattern="https://stackoverflow.com/users/authorize/*" access="isAuthenticated()" />
<!--<form-login /> -->
<form-login login-page="/login" />
<logout />
<remember-me />
<!--
Uncomment to enable X509 client authentication support <x509 />
-->
<!-- Uncomment to limit the number of sessions a user can have -->
<session-management>
<concurrency-control max-sessions="10000"
error-if-maximum-exceeded="true" />
</session-management>
</http>
는하지만, 예를 들어,에 액세스하려고하면, /구매자/비 HTTPS에 의해 새로운는 http://localhost:8085/path/buyers/new
내가 다음 오류 링크 :
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.
이
쿠키 허용 그래서 나는이 생각 문제가되지 않습니다. 비슷한 오류 위의 링크에 액세스하려고 시도했을 때 Chrome에 있습니다.
제 설정에서 포트 8085는 비 SSL 포트입니다. SSL은 포트 8443에서 구성되며 정상적으로 작동합니다.
일부 페이지에 대한 모든 액세스 시도가 https로 리디렉션되기를 원합니다.
모든 조언을 매우 높이 평가할 것입니다.
안부, Tiho
이 가능한 솔루션처럼 보인다. 나는 오늘 밤 그것을 시험 할 것이고, 그것이 나를 위해 일했는지에 관해 당신에게 알릴 것이다. 어쨌든 도와 주셔서 감사합니다. – Tiho
이것은 확실히 작동합니다. 고마워. 문안 인사 – Tiho