password protect vmktree using .htaccess?

4 views
Skip to first unread message

gordo...@gmail.com

unread,
Mar 23, 2009, 9:35:50 AM3/23/09
to vmktree
Is there a way to password protect vmktree?

I've created a htpasswd and .htaccess files but never get prompted for
a login.

I guess that apache has not been configured to use .htaccess. I can't
seem to find any mention of vmktree in any of the .conf files so was
wondering if anyone has tried this or has any pointers?

dubno

unread,
Mar 23, 2009, 10:56:35 AM3/23/09
to vmktree
Update - I forgot to mention that I am using vmktree 0.1.2 and VMWare
server 1.08 on Ubuntu 8.04.

Edward Murphy

unread,
Mar 23, 2009, 6:23:49 PM3/23/09
to vmk...@googlegroups.com
In your apache config you can have the following

     <Location /cgi-bin/vmk>
                AuthUserFile LOCATIONTOHTACCESS
                AuthName "Please Log in to access this resource"
                AuthType Basic
                Satisfy any
                <Limit GET>
                        require valid-user
                        order deny,allow
                        deny from all
                </Limit>
        </Location>

Should work for what your after.

Gordon Cock

unread,
Mar 23, 2009, 8:09:40 PM3/23/09
to vmk...@googlegroups.com
That worked great.

For the record, I didn't originally have any .htpasswd file. (As
required by AuthUserFile (should have been LOCATIONOFHTPASSWD?)

I created a .htpasswd file in a non-public location using the htpasswd
utility

Thanks again for the prompt response!

On Tue, 2009-03-
Reply all
Reply to author
Forward
0 new messages