
我們有以下配置:
<Directory /docs>
AuthFormAuthoritative Off
AuthType None
Allow from all
Satisfy any
Options FollowSymLinks
</Directory>
問題:我不希望任何 cookie 與文件(以 開頭的 URL)一起傳送到 Apache 目錄,/docs
即使使用者先造訪需要驗證的主網站。
可以用 Apache 來做嗎?我應該添加什麼配置?
答案1
也許你可以嘗試使用mod_headers
and:
RequestHeader unset Cookie
所有的功勞都歸於 stackoverflow 的傢伙們: https://stackoverflow.com/questions/1798431/how-to-remove-a-cookie-in-apache