<div>Dear all,</div>
<div>&nbsp;</div>
<div>I'm trying to use apache as zope3's frontend, and do NTLM authentication as well.</div>
<div>&nbsp;</div>
<div>I've done:</div>
<div>1. Installed mod_ntlm for apache 1.3, and tested.</div>
<div>2. Create a VirtualHost for zope3 instance, forwarding http request using rewrite engine. And tested.</div>
<div>&nbsp;</div>
<div>Now I try to put things together =&gt; A virtualhost can do NTLM authentication and forward request to zope3, my virtual&nbsp;configration of apache as below:</div>
<div>&nbsp;</div>
<div>&lt;VirtualHost *:808&gt;<br>&nbsp;&nbsp;&nbsp; DocumentRoot c:/myroot<br>&nbsp;&nbsp;&nbsp; Servername&nbsp;myserver<br>&nbsp;&nbsp;&nbsp; ErrorLog logs/myerror.log<br>&nbsp;&nbsp;&nbsp; CustomLog logs/myaccess.log common<br>&nbsp;&nbsp;&nbsp; RewriteEngine On<br>&nbsp;&nbsp;&nbsp; RewriteRule ^(/?.*) <a href="http://localhost:8080/++vh++http:myserver:808/++$1">
http://localhost:8080/++vh++http:myserver:808/++$1</a> [P,L] <br>&nbsp;&nbsp;&nbsp; &lt;Location &quot;/&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mod_ntlm.c&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuthName &quot;realm&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuthType NTLM<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NTLMAuth On
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NTLMAuthoritative On<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NTLMDomain&nbsp;mydomain<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NTLMOfferBasic Off<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NTLMBasicPreferred Off<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; require valid-user<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Location&gt;
<br>&lt;/VirtualHost&gt;</div>
<div>&nbsp;</div>
<div>Everytime I try to access the page, the brower show me error message as below:</div>
<div>
<h1>Authorization Required</h1>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
</div>
<div>&nbsp;</div>
<div>What's wrong in my settings? </div>
<div>&nbsp;</div>
<div>Thanks in advance,</div>
<div>Simon</div>