Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web サイトの選択したサブフォルダーでのみ認証を要求するように tomcat7 と SSL を構成するにはどうすればよいですか?
たとえば、パブリックにアクセスできるようにしたいフォルダーがあるとします: /nonSecure/
認証が必要な別のフォルダーがあります: /secureStuff/
私は何をする必要がありますか?答えは conf/web.xml または conf/server.xml ファイルにあると感じていますが、これまでのところうまくいきません。
HTTPS で保護する URL を指定する適切な<security-constraint>エントリを web.xml に指定する必要があります。<transport-guarantee>CONFIDENTIAL</transport-guarantee>
<security-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
コンテナ管理認証を使用していると仮定します。そうでない場合は、そうする必要があります。