开发者

Using my own login page for a password-protected Apache web directory

I have a password-protected Apache web directo开发者_JAVA百科ry. Is there any way to access it with my own login page, instead of the standard browser login pop-up?


Sadly no - the authentication is handled by the browser which serves you the popup. If you want to use HTTP basic auth you'll have to live with the ugly popup.

If you want to protect it using some other auth mechanism (e.g. something common would be against a user table and using cookies for a session identifier) then you'd have to write a small application that handles the auth and exposes the files in the directory when you want them to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜