Apache 2.2 Passworded Directorys

Discussion in 'Apache' started by Ferrarislave, Oct 29, 2006.

  1. #1
    I have a virtual host
    
    <VirtualHost 111.1111.111.111:80>
        ServerName site.com
        ServerAlias *.site.com
        DocumentRoot /home/sitename/public_html
    
        <Directory /home/sitename/public_html/myfolder>
            Options All
            AllowOverride All
            IndexOptions IconsAreLinks FancyIndexing XHTML
        </Directory>
     
        <Directory /home/sitename>
            AllowOverride All
            Order Allow,Deny
            Allow from all
        </Directory>
    </VirtualHost>
    
    HTML:
    The directory settings work great. /home/sitename/public_html/myfolder has indexing, while the others don't. However, when I add a htaccess + htpasswd file to protect the /home/sitename/public_html/myfolder I get a 500 internal server error.

    The error log reports: [Sun Oct 29 18:56:32 2006] [crit] [client 111.111.111.111] configuration error: couldn't check access. No groups file?: /myfolder

    Why is it throwing that error? I shouldn't need a groups file?

    My htaccess looks like this:

    
     
    AuthName "Restricted Area" 
    AuthType Basic 
    AuthUserFile /home/mysite/public_html/myfolder/.htpasswd 
    AuthGroupFile /dev/null 
    require valid-user
     
    
    HTML:
    ^ The htpasswd file is for sure there, and it is all spelled right.

    I am running Apache2.2.3 on FreeBSD. I have mod_auth enabled, as well as a fet other authn mods. I am not quite sure why this isn't working. It should work on by default, but it doesnt....

    Can anyone who is proficent with Apache2.2 *cough* *cough* shoemoney help a brotha out?
     
    Ferrarislave, Oct 29, 2006 IP
  2. Ferrarislave

    Ferrarislave Peon

    Messages:
    1,129
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Theres has got to be someone who can help me out. Shoemoney? The apache masta! :)
     
    Ferrarislave, Oct 30, 2006 IP