Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Apache with Kerberos security enabled. The http page simply lists the directories contained in /var/www/html. I want to make only one of the directories in the document root secured so that when someone clicks on it, it requires him/her to enter credentials. Right now when I place the .htaccess file in the directory I want to protect, the directory is hidden from the list and the user has to enter the whole path to get authenticated and access the files.
I've tried Options +Indexes which was posted all over the net, but it didn't work.
Do you have any idea how to apply directory restrictions based on AD groups rather than users? Right now it works for users, here is my .htaccess file:
Code:
AuthName "Windows Account Login"
AuthType Kerberos
Krb5Keytab /etc/httpd/krb5.keytab
KrbAuthRealm DOMAIN.COM
KrbMethodNegotiate off
KrbSaveCredentials off
KrbVerifyKDC off
require valid-user
#require group DOMAIN.COM\somegroup
You can use mod_authnz_ldap to authenticate users through a Windows AD. I'm not familiar with windows stuff to help you further, but if you do a little search, you'll find a lot of documentation about this.
I am using the Windows version of Apache 2.0.63. There are certain directories I'd like to be password protected, so I added an .htaccess file to these directories with the following information,
,however once I do this, the directory becomes hidden. The only way to access it via the internet is to already know the directory name. I would like to unhide this directory, but maintain password protected access.
In the Windows version of Apache, I do not see a folder named /var/www/html.
I tried adding IndexOptions ShowForbidden to the .htaccess file, but browser access still did not display the password-protected directories.
I tried adding IndexOptions ShowForbidden to the httpd.conf file under this section,
<Directory "E:/">
Order allow,deny
Allow from all
Options +Indexes
IndexOptions FancyIndexing NameWidth=64
AllowOverride authconfig
</Directory>
however, after saving the httpd.conf file, the Apache service will not start and yields error, "The requested operation has failed!"
I suspect that the IndexOptions ShowForbidden may apply to newer versions of Apache, perhaps version 2.2. What is the analogous equivalent to this command for Apache 2.0.63 when run in Windows? Is there any other way to unhide password protected directories with Apache 2.0.63 in Windows?
I suspect that the IndexOptions ShowForbidden may apply to newer versions of Apache, perhaps version 2.2. What is the analogous equivalent to this command for Apache 2.0.63 when run in Windows? Is there any other way to unhide password protected directories with Apache 2.0.63 in Windows?
I'm afraid you're right. "ShowForbidden" is introduced in apache-2.2 and AFAIK there is no equivalent option for apache-2.0.63
Since apache-2.0.x is no longer maintained, it's better to upgrade
PS: And please don't hijack others threads, you should start your own
My appologies. I did not feel I was "hijacking" this thread - my question is consistent with the OP. There exists some variability in what users refer to as "hijacking", so I appologise if my interpretation and consequent action upsets you.
Unfortunately, Apache 2.0.63 was the latest version of Apache I was able to get functioning with Windows NT 4.0 on my 486. It may be there are other methods to display password-protected directories in Apache 2.0.x.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.