Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'What in the @#@*' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What in the @#@*
Authored by: Anonymous on Jul 05, '01 01:19:18PM

I set up the require .htpasswd file and appropriate .htaccess in the directory.

It works, yet I can't restart Apache due to a config error:

apachectl configtest

Processing config file: /private/etc/httpd/users/.htpasswd
Syntax error on line 1 of /private/etc/httpd/users/.htpasswd:
Invalid command 'username:AYDJc8.vmUB2w', perhaps mis-spelled or defined by a module not included in the server configuration

It doesn't matter which option I use:

-m Force MD5 encryption of the password.
-d Force CRYPT encryption of the password (default).
-p Do not encrypt the password (plaintext).
-s Force SHA encryption of the password.

Apache will not restart unless .htpasswd is empty and with that nothing gets in.

Any ideas?

Running Apache 1.3.20
PHP 4.*

Note that my version of Apache is not in the standard Apple locations, but follows BSD tree.

The module is there (mod_auth & the .so) and not commented out in httpd.conf

[ Reply to This | # ]
In addition: What in the @#@*
Authored by: Anonymous on Jul 05, '01 04:55:22PM

I notice that .htaccess works but Apache will not restart if any entries exist in this file. If I remove U:P from the .htaccess file Apache will restart I have to place them back in their my hand. This really sucks.

[ Reply to This | # ]