2018-01-01から1年間の記事一覧
はじめに この記事はIT地方エンジニア Advent Calendar 2018 23日目の記事です。 https://adventar.org/calendars/3086 2017年9月に東京から青森にUターンし、早1年が経過。 去年の年末に書いた記事が以下。 itdogkuwaccho.hatenadiary.com その当時とは状況…
正直、普通にHTTPサーバー側で制御しろという話なのだが...... web.xmlにこんな感じに security-constraint を2つ用意した上で必要なものをBASIC認証のレルムから外す事でできる。 <security-constraint> <web-resource-collection> <web-resource-name>no auth</web-resource-name> <url-pattern>/sample.html</url-pattern> <url-pattern>/hoge/*</url-pattern> </web-resource-collection></security-constraint>