Re: Apache/Redhat Simple AuthType Basic not working :( help please

From: Simon Tneoh Chee-Boon (tneohcb_at_gen-x.com.my)
Date: 01/05/04

  • Next message: Piotrek Għsiorowski: "Re: Boot problems with LILO"
    To: <redhat-list@redhat.com>
    Date: Mon, 5 Jan 2004 17:08:13 +0800
    
    

    Hello Ben Yau,
       It seems like your configuration is correct, that's why your log file
    didn't
    return any error message, 'coz the setting is to ignore it.
       Try to add:
    <Directory />
    AllowOverride Limit AuthConfig
    </Directory>
       Then in your .htaccess located in your directory:
    AuthType Basic
    AuthName "ReportsAutoRebates"
    AuthUserFile /home/www/reports.auto-rebates.com/.rarpasswd
    Require valid-user

        Hope this helps.

    Regards,
    Simon.

    --
    Simon Tneoh Chee-Boon     Gen-X Technology Sdn. Bhd.
    http://www.gen-x.com.my    http://www.tneoh.zoneit.com/simon/
    ----- Original Message ----- 
    From: "Ben Yau" <byau@cardcommerce.com>
    To: <redhat-list@redhat.com>
    Sent: Saturday, January 03, 2004 6:06 AM
    Subject: Apache/Redhat Simple AuthType Basic not working :( help please
    > Hi all.
    >
    > Happy New Year everybody.
    >
    > I'm really having problems with this and I can't figure it out.
    >
    > The problem is that apache seems to be ignoring any of the authentication
    > setup i've put in for a new virtual host.  The pages are freely available
    to
    > anyone who goes to the URL.  The error logs and access logs reflect this.
    > No errors, and access entries show regular web page serving.
    >
    > I went through the tutorial (http://httpd.apache.org/docs/howto/auth.html)
    > and the apache manual (html version downlaoded to my computer) just to
    make
    > sure I wasn't missing anything and still having problems.  I'm sure I've
    > overlooked something obvious so hopefully someone can help me out. (at
    least
    > I'm hoping it's something obvious that i've overlooked)
    >
    > We're running Redhat 8.x, Apache2.0.48.
    >
    > The httpd.conf file is quite convoluted (legacy, and this is where I think
    > i'm overlooking something). There are several virtualhost entries  and the
    > problem I'm having is wiht a new Virtualhost for accessing reports of
    > webstats for a specific site.
    >
    > There is an AllowOverride None in the main config area (before all the
    > Virtual hosts directives) in a <Directory /> directive .  From what I
    > remember and what I read in one of the tutorials or manuals that means
    that
    > the .htaccess file is completely ignored which is why I'm doing everything
    > in the VirtualHost directive to be safe.  (is this correct?)
    >
    > Here is my Virtualhost entry:
    > <VirtualHost 10.253.32.174:80>
    >
    > ServerName              reports.auto-rebates.com
    > ServerAdmin             webmaster@cardcommerce.com
    > DocumentRoot            /home/www/reports.auto-rebates.com
    > DirectoryIndex          index.html
    > Alias /awstatsjs "/usr/local/awstats/wwwroot/js/"
    > Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
    > Alias /awstatscss "/usr/local/awstats/wwwroot/css"
    > Alias /awstatsicons "/usr/local/awstats/wwwroot/icon"
    > <Directory />
    > AuthType Basic
    > AuthName "ReportsAutoRebates"
    > AuthUserFile /home/www/reports.auto-rebates.com/.rarpasswd
    > Require valid-user
    > </Directory>
    > </VirtualHost>
    >
    > I've also tried
    >
    > Require user byau
    >
    > as well (my test username) with no luck.
    > I created the password file using
    >
    > # htpasswd -c /home/www/reports.auto-rebates.com/.rarpasswd byau
    >
    > I've stopped and restarted the server every time I've changed anything.
    > I've also stopped and restarted my browser (IE on WinXP) and deleted temp
    > browser files in case I was already auth for that dir and for that reason
    > was skipping future auth.  Also accessed the pages using lynx on localhost
    > and still no auth required. There are no errors.  only entries in access
    > just like normal web page serving
    >
    > It's worth mentioning that there is a virtual host that uses /home/www as
    > its documentroot that has its own auth configs.  These do work by the way.
    > When I close/repoen browser and attepmt to go to the reports website in
    > /home/www/reports.auto-rebates.com, there is no auth asked for  at all so
    I
    > don't think it is that I have already somehow been validated into
    /home/www
    > and am now being validated into /home/www/reports.auto-rebates.com.  Is it
    > possible that configurations for /home/www i affecting configs for
    > /home/www/reports.auto-rebates.com even though they are in different
    > <Virtualhost> directives?
    >
    > Here is the first <Virtualhost> entry:
    > <VirtualHost 10.253.32.174:80>
    >
    > ServerName      www.escrip.com
    > CauchoConfigFile        /usr/local/resin/conf/escrip.conf
    > Serveradmin     webadmin@rmsys.net
    > DirectoryIndex  index.html index.htm index.jsp index.HTM /error/404.html
    > ScriptAlias     /cgi-bin/ /home/www/escripinc_pub/cgi-bin/
    > Alias   /dev/ /home/www/dev/escripinc_pub/
    > DocumentRoot    /home/www/escripinc_pub/
    >
    >
    > <Directory />
    >
    > AuthType Basic
    > AuthName "Escrip Staging"
    > AuthUserFile /home/www/.esipasswd
    > AuthGroupFile /dev/null
    > Require valid-user
    >
    > </Directory>
    > </Virtualhost>
    >
    >
    > And here is the config stuff before the first <Virtualhost>.  I took out
    all
    > the things that didn' tlook relevant (like Add* and BrowserMatch* and
    things
    > like that)
    >
    > User nobody
    > Group nobody
    > ServerAdmin webmaster@cardcommerce.com
    > ServerName tarpon.internal.cci
    > UseCanonicalName Off
    > DocumentRoot "/usr/local/apache2.0.48/htdocs"
    > <Directory />
    >     Options FollowSymLinks
    >     AllowOverride None
    > </Directory>
    > AccessFileName .htaccess
    > <Files ~ "^\.ht">
    >     Order allow,deny
    >     Deny from all
    > </Files>
    > TypesConfig conf/mime.types
    > DefaultType text/plain
    > <IfModule mod_mime_magic.c>
    >     MIMEMagicFile conf/magic
    > </IfModule>
    > HostnameLookups Off
    >
    >
    >
    >
    > Thanks anybody for any ideas on where I can look.  At this point I'm just
    > trying random things out to see if anything works.  I realize there are
    > other issues to solve (such as not putting the AuthUserFile in same dir as
    > DocumentRoot).  That's the legacy they are using on the test server that
    > I'll talk to him about later.  All I need to do right now is just get the
    > username/password working for this virtual host.
    >
    > Thanks!
    > Cheers!
    > Ben
    >
    >
    >
    >
    >
    >
    > -- 
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Piotrek Għsiorowski: "Re: Boot problems with LILO"

    Relevant Pages

    • Apache issues on Fedora 9
      ... I have a server that is running fedora 9 x64 that runs decently, but the parent process SegFaults when issued a reload command but is fine, no problem when I restart it, instead of reload it. ... My second issue, which I know is something I am doing wrong, but I can't figure out what is that I have one server, servicing my .net site, which has been up with the same config for about two years. ... I have expanded out domains to include a .org and a .com, which I would like to virtualhost. ...
      (Fedora)
    • Re: Ideal Web Development Environment?
      ... only developer in a 1 server department with no budget, few resources, ... sandboxed area of the dev box. ... php, database, third party tools, onto your own computer (which could ... Config Files: There have to be many types of config files. ...
      (comp.lang.php)
    • Re: Offline Files and RDC (Multiple)
      ... Create a computer account on the customers SBS server. ... Well that worked fine on my system - which I'd setup exactly how the clients ... Also its not at all clear whether the message is talkin about the "Client" ... do I remove whatever has got setup to config "multiple remote desktop ...
      (microsoft.public.windows.server.sbs)
    • Re: RAID 1
      ... Stop focusing on the server - it is a straw man. ... As you can see from the config above and its ... As you can also see, immediately before reading post 9, which is your ... >> where you don't move the disk, ...
      (comp.os.linux.networking)
    • SUMMARY: Solaris 8 Postfix SMTP Gateway and Postfix Mailserver
      ... postfix config problem. ... That you make entries in /etc/hosts for gateway and mailserver with both ... from OpenWebMail to a domain or local user on the same server it will not be ... No I know that this is not a special Solaris 8 question but I don't know if ...
      (SunManagers)