RE: Basic Authentication not working in Gentoo Linux - Apache

This is a discussion on RE: Basic Authentication not working in Gentoo Linux - Apache ; > -----Original Message----- > From: Manilal K M [mailto:libregeek@gmail.com] > Sent: Dienstag, 14. März 2006 09:55 > To: users@httpd.apache.org > Subject: [users@httpd] Basic Authentication not working in > Gentoo Linux > > Hello all, > I am a newbie in ...

+ Reply to Thread
Results 1 to 3 of 3

RE: Basic Authentication not working in Gentoo Linux

  1. Default RE: Basic Authentication not working in Gentoo Linux

    > -----Original Message-----
    > From: Manilal K M [mailto:libregeek@gmail.com]
    > Sent: Dienstag, 14. März 2006 09:55
    > To: users@httpd.apache.org
    > Subject: [users@httpd] Basic Authentication not working in
    > Gentoo Linux
    >
    > Hello all,
    > I am a newbie in apache, less than 2 weeks of experience. I am
    > trying to protect one of my directory in the web server with Basic
    > authentication. I am using Gentoo Linux with apache-2.0.55. I see that
    > auth_module is loaded as a Module. I have configured the Virtual Host
    > like this. The problem is that the login dialog box never appears in
    > the browser and the web page is immediately displayed. The
    > configuration I used is (from /etc/apache2/httpd.conf):
    > user backuppc
    > group backuppc
    > <VirtualHost anaconda.localhost.com:80>
    > DocumentRoot /var/www/localhost/cgi-bin/BackupPC
    > ServerAdmin root@anaconda.localhost.com
    > ServerName anaconda.localhost.com
    > ErrorLog logs/anaconda.localhost.com-error_log
    > CustomLog logs/anaconda.localhost.comaccess_log common
    > <Directory /var/www/localhost/cgi-bin/BackupPC>
    > Options FollowSymLinks
    > Options +ExecCGI
    > AuthName "Tiger Login:"



    > AllowOverride AuthConfig


    This directive is a bit funny... It says:

    "allow any Auth directives in a .htaccess file in this directory to override the main config (ie, this file)".

    Since you have put your Auth directives in the main config, it doesn't make much sense to allow them to then be overridden (unless you have a really complicated setup - I'm guessing you have a simple setup).

    I would remove this directive and also check you don't have a .htaccess file in /var/www/localhost/cgi-bin/BackupPC. If you do, decide if you need it... (especially if it has "Satisfy any" in it...).

    If that doesn't get it working or if you want further advice about ..htaccess files and when to use and not to use them, check the docs http://httpd.apache.org/docs/2.2/howto/htaccess.html and/or post back (add error and access log entries).

    Rgds,
    Owen Boyle
    Disclaimer: Any disclaimer attached to this message may be ignored.

    > AuthType Basic
    > AuthUserFile /usr/local/etc/htpasswd
    > Require user libregeek
    > </Directory>
    > </VirtualHost
    >
    > I am able to run the same setup in my Fedora Core 4 server. But it
    > fails in the Gentoo Server. I can't get what had gone wrong. I
    > searched the MARC archives, but couldn't find a workable solution.
    > Please help me. I am in great trouble.
    > I can't find anything wrong in either syslog or apache log. Any help
    > would be appreciable.
    >
    > regards
    > Manilal
    >

    Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.


    This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  2. Default Re: Basic Authentication not working in Gentoo Linux

    On 14/03/06, Boyle Owen <Owen.Boyle@swx.com> wrote:
    > > -----Original Message-----
    > > From: Manilal K M [mailto:libregeek@gmail.com]
    > > Sent: Dienstag, 14. März 2006 09:55
    > > To: users@httpd.apache.org
    > > Subject: [users@httpd] Basic Authentication not working in
    > > Gentoo Linux
    > >
    > > Hello all,
    > > I am a newbie in apache, less than 2 weeks of experience. I am
    > > trying to protect one of my directory in the web server with Basic
    > > authentication. I am using Gentoo Linux with apache-2.0.55. I see that
    > > auth_module is loaded as a Module. I have configured the Virtual Host
    > > like this. The problem is that the login dialog box never appears in
    > > the browser and the web page is immediately displayed. The
    > > configuration I used is (from /etc/apache2/httpd.conf):
    > > user backuppc
    > > group backuppc
    > > <VirtualHost anaconda.localhost.com:80>
    > > DocumentRoot /var/www/localhost/cgi-bin/BackupPC
    > > ServerAdmin root@anaconda.localhost.com
    > > ServerName anaconda.localhost.com
    > > ErrorLog logs/anaconda.localhost.com-error_log
    > > CustomLog logs/anaconda.localhost.comaccess_log common
    > > <Directory /var/www/localhost/cgi-bin/BackupPC>
    > > Options FollowSymLinks
    > > Options +ExecCGI
    > > AuthName "Tiger Login:"

    >
    >
    > > AllowOverride AuthConfig

    >
    > This directive is a bit funny... It says:
    >
    > "allow any Auth directives in a .htaccess file in this directory to override the main config (ie, this file)".
    >
    > Since you have put your Auth directives in the main config, it doesn't make much sense to allow them to then be overridden (unless you have a really complicated setup - I'm guessing you have a simple setup).
    >
    > I would remove this directive and also check you don't have a .htaccess file in /var/www/localhost/cgi-bin/BackupPC. If you do, decide if you need it... (especially if it has "Satisfy any" in it...).
    >
    > If that doesn't get it working or if you want further advice about .htaccess files and when to use and not to use them, check the docs http://httpd.apache.org/docs/2.2/howto/htaccess.html and/or post back (add error and access log entries).


    >
    > Rgds,
    > Owen Boyle
    > Disclaimer: Any disclaimer attached to this message may be ignored.
    >
    > > AuthType Basic
    > > AuthUserFile /usr/local/etc/htpasswd
    > > Require user libregeek
    > > </Directory>
    > > </VirtualHost
    > >
    > > I am able to run the same setup in my Fedora Core 4 server. But it
    > > fails in the Gentoo Server. I can't get what had gone wrong. I
    > > searched the MARC archives, but couldn't find a workable solution.
    > > Please help me. I am in great trouble.
    > > I can't find anything wrong in either syslog or apache log. Any help
    > > would be appreciable.
    > >
    > > regards
    > > Manilal


    Dear Mr. Owen,
    I have comment out the directive _AllowOverride AuthConfig_ as you
    suggested. I have also checked in the
    /var/www/localhost/cgi-bin/BackupPC for any .htaccess files. The
    folder doesn't have any .htaccess files. But still the authentication
    dialog doesn't appear and the browser directly displays the protected
    page.
    regards
    Manilal

  3. Default access_log is not being written into




    Apache 2.0.46 on Redhat Linux

    Greetings;

    The access_log is being rotated fine.
    The access_log's permission/ownership ,etc are OK too.

    It's just that it's not being written into and after
    its rotation and its size remains zero --
    until I do manually restart httpd.

    The rotation is done via /etc/logrotate.d/httpd

    All these methods were tried to no avail.

    service httpd graceful > /dev/null
    service httpd restart > /dev/null
    /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true



    Any idea why access_log's size remains zero and httpd
    is not writing anything to it after the rotation?


    Thank you,
    Fraid

    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



+ Reply to Thread