You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Yau <by...@cardcommerce.com> on 2004/01/03 00:19:19 UTC

[users@httpd] Mis-stated error, still not working: Apache/Redhat Simple AuthType Basic notworking :( help please

>
>
> Are you saying that /home/www works and asks for authentication,
> but /home/www/reports.auto-rebates.com doesn't ask for
> authentication. If this is correct, I would think that even
> though you have defined a vHost you should still be able to acess
> index.html in /home/www/reports.auto-rebates.com and be prompted
> for authentication.

Actually,  I was mistaken.   Mea Culpa-

/home/www is not document root for www.escrip.com.  That's just where the
pass file is being kept (/home/www/.esipasswd).  The doc root is
/home/www/escripinc_pub.  /home/www is not docroot for any virtualhost.  So
that is a huge mistake on my part (big).  I was getting confused between two
different config files i was looking at for separate servers.   Forgive me
for the confusion.  On to the error:

>
> Also, why is it <Directory /> 'Root'  instead of <Directory
> someValidPath>?
>

I was wondering that also.  As my apache is a bit rusty ... perhasp that is
an error.  I believed <Directory /> referred to the doc root, basically
wherever http://reports.auto-rebates.com pointed to.  And since all files in
http://reports.auto-rebates.com should require the auth, that is why I put
<Directory />


Is that not correct?

Anyway, I had used <Directory /home/www/reports.auto-rebates.com> as well ..
same problem.  No error log entry.  Access log entry is normal web serving
with no auth.

Thanks
Ben





---------------------------------------------------------------------
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


[users@httpd] Simplified explanatoin: Apache/Redhat Simple AuthType Basic notworking :( help please

Posted by Ben Yau <by...@cardcommerce.com>.
Okay, in an effort to get it working and not understand, i copied and pasted
a working configuration.  Still doesn't work.
Here are the two virtual host configs . The first is for
www.youthfocusfund.com .  The auth DOES WORK on this one.  The second is for
the reports.auto-rebates.com.  The auth DOES NOT WORK on this one.  Any
guesses ?  Thanks !  I'm literraly tearing my hair out on this one.
Eventually I'll be able to cancel my tuesday haircut appointment (hey ,and
save me some dough :)


#########################################################

<VirtualHost 10.253.32.174:80>

ServerName      www.youthfocusfund.com
ServerAlias     www.youthfocusfund.*
CauchoConfigFile        /usr/local/resin/conf/escrip.conf
ServerAdmin     webmaster@cardcommerce.com
DocumentRoot    /home/www/yff
DirectoryIndex  index.html
CustomLog       /u1/log/escrip/yff_custom_pub_log.current "%h %l %u %t
\"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""

<Directory />

AuthType Basic
AuthName SSLStaging
require user escrip
AuthUserFile /home/www/.esipasswd
AuthGroupFile /dev/null
Require valid-user
AllowOverride None
Options +ExecCGI Includes

</Directory>

</VirtualHost>

#########################################################

Here is the reportss auto rebates, copied from youthfocus fund

#########################################################

<VirtualHost 10.253.32.174:80>

ServerName      reports.auto-rebates.com
ServerAlias     www.youthfocusfund.*
CauchoConfigFile        /usr/local/resin/conf/escrip.conf
ServerAdmin     webmaster@cardcommerce.com
DocumentRoot    /home/www/reports.auto-rebates.com
DirectoryIndex  index.html
CustomLog       /u1/log/escrip/yff_custom_pub_log.current "%h %l %u %t
\"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""

<Directory />

AuthType Basic
AuthName REPORTSAUTOREBATE
require user escrip
AuthUserFile /home/www/.esipasswd
AuthGroupFile /dev/null
Require valid-user
AllowOverride None
Options +ExecCGI Includes

</Directory>
</VirtualHost>




Thanks
Ben




---------------------------------------------------------------------
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