特定URL上的Apache2 NTLM身份validation

我有个问题。 我使用Legrandin的NTLM身份validation模块PyAuthenNTLM2与我的Apache2服务器。 它真的很好,安装也很简单。 我推荐给大家

身份validation工作得很好。 但是一旦POST请求被发送,我就有问题了。 每次POST发送到服务器,IE的令人讨厌的凭据提示不断出现。 即使我选中了“记住我的凭证”。 这是我现在如何configuration它:

<Directory /var/www/> AuthType NTLM AuthName DOMAIN require valid-user PythonAuthenHandler pyntlm PythonOption Domain DOMAIN PythonOption PDC 123.45.67.89 PythonOption BDC 123.45.67.89 Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> 

我对你们的问题:

是否可以只在一个URL上进行身份validation?

例如:如果用户首次访问我的页面,则URL将为: http : //domain.com/custom/login 。 虽然这个URL不代表目录。 它只是Zend Framework的一个控制器。

这可能吗?

你要做的是使用<Location>容器,它将URL映射到选项,如:

 <Location /custom/login> ... options ... </Location>