After i added this line to my apache httpd.conf it does not start.
AuthUserFile /apps/apache22/conf/httpd.passwd
and i see the below error.
[ Jan 12 08:47:06 Executing start method ("/apps/apache22/bin/apachectl_worker -DSSL -k start -f /apps/apache22/conf/httpd.conf") ]
Syntax error on line 876 of /apps/apache22/conf/httpd.conf:
AuthUserFile not allowed here
[ Jan 12 08:47:06 Method "start" exited with status 1 ]
Kindly help.
Without seeing where you put it or even any idea what you were trying to accomplish yet, I don't know why it's objecting. But it's telling you what's wrong in plain english. That line doesn't make sense wherever you put it.
Typically that directive goes in a .htaccess file in the directory you wish to protect
From [PenLUG] re: twiki and .htaccess :
"This means that this .htaccess file must be inside a directory
that is allowed to have Overrides of type "AuthConfig" .
That means that the httpd.conf (or something included by it)
must have an AllowOverride with either "All" or "AuthConfig" ,
and this directive must be within a Directory container for a directory
tree that covers your ...file."
I'm not very much up on my Apache Directive Syntax, but maybe you are and this will point you in a productive direction. Good luck.
Thanks for the inputs, as I was able to overcome the error by putting the option under the directory tag. Initially I was putting it under the virtualhost tag.
I am actually trying to setup 2way SSL between Apache and Juniper.
I have started seeing this error in my apache logs.
"[Tue Jan 17 11:24:08 2012] [error] Re-negotiation handshake failed: Not accepted by client!?"
Can someone share the correct options under my directory tag that should get 2 way SSL working in apache ?