Jump to content


Photo

Authentication Not Working, Possibly Not Starting (1.3 on FreeBSD)


  • Please log in to reply
1 reply to this topic

#1 chris_friberg

chris_friberg
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 11 July 2006 - 11:52 PM

I had Authentication working at one point in time.  I used httpd.conf to specify the directory I wanted password authenticated.  I decided to change that line to ask for authentication on a different directory, and now it seems to ignore that section and not ask for authentication when you access pages in this directory.  I looked through the FAQ and it only mentions basic troubleshooting of .htaccess files which I tried applying here, but with no luck.  I also scanned through the forum for solutions.

Here's the part of my httpd.conf file with Directory settings:

"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory /usr/local/www/data>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

<Directory "/usr/local/www/data/xxx">
    AuthType Basic
    AuthName "By Invitation Only"
    AuthUserFile /etc/xxxpass
    Require user aaa bbb ccc
</Directory>

"

Also, I don't know if these warnings mean anything, when I restart apache.  I get this:
"
$ apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
[Tue Jul 11 16:44:01 2006] [warn] NameVirtualHost www.mysite.com:80 has no VirtualHosts
[Tue Jul 11 16:44:01 2006] [warn] NameVirtualHost www.mysite2.com:80 has no VirtualHosts
[Tue Jul 11 16:44:01 2006] [warn] NameVirtualHost webmail.mysite.com:80 has no VirtualHosts
/usr/local/sbin/apachectl restart: httpd started

"

Can someone double check my httpd.conf lines and/or interpret my warnings?

Thanks!


#2 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 14 July 2006 - 02:22 AM

Looks like it isn't a problem with your directory settings, but rather with your virtual hosts.  Can you post that section of your config file also?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users