Re: [users@httpd] Basic Authentication not working in Gentoo Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/03/06, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
> > -----Original Message-----
> > From: Manilal K M [mailto:libregeek@xxxxxxxxx]
> > Sent: Dienstag, 14. März 2006 12:46
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: Re: [users@httpd] Basic Authentication not working
> > in Gentoo Linux
> >
> > On 14/03/06, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
> > > Another point:
> > >
> > > Are you sure you are accessing the resource via this VH? I
> > notice it's a cgi-bin directory... Is there another VH
> > container that could be allowing access via a ScriptAlias or
> > something?
> > There is no other virtual host. But a scriptalias tag which
> > is described below.
> >
> > >
> > > The point I'm making is that your access control is only
> > valid in the scope of <VirtualHost anaconda.localhost.com:80>
> > yes. I am trying to access like this:
> > http://anaconda.localhost.com/cgi-bin/BackupPC/BackupPC_Admin
> > >
> > > BTW - I guess you are obscuring a real domain name there?
> > NB - it's a bad idea to put a FQDN in a VH, it's better to
> > use an IP address (with an FQDN, apache needs functinal DNS
> > to start. And it's slower).
> > I have just hide the original domain name due to security issues
> >
> > >
> >
> > I have a ScriptAlias directive like this :
> > ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/
>
> Aha.... but where is this directive? If it's in another VH, or the "main config" then your directives in <VirtualHost anaconda.localhost.com:80> will never get used...
>
> Have a think about scoping and where each directive should be...
>
> I just saw your next message - (where you get it working with the static file directory).. Things to try:
>
> - move the ScriptAlias into the VH
> - read up on CGIs (difference between ScriptAlias and ExecCGI) - you're a bit mixed up there too...
>

Finally I got it working. I just commented the VirtualHost part and
simply put the following:
>
> I just saw your next message - (where you get it working with the static file directory).. Things to try:
>
> - move the ScriptAlias into the VH
> - read up on CGIs (difference between ScriptAlias and ExecCGI) - you're a bit mixed up there too...
>

Finally I got it working. I just commented the VirtualHost part and
simply put the following:
<Directory /var/www/localhost/cgi-bin/BackupPC>
                Options FollowSymLinks
                Options +ExecCGI
                AuthName "E-mail login:"
                AuthType Basic
                AuthUserFile /usr/local/bp/htpasswd
                Require user manilal
 </Directory>
But I couldn't identify what had gone wrong there. I'm unsure about
ScriptAlias and ExecCGI so I need to read more abt it. What are your
thoughts?

regards
Manilal

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux