You are not logged in.
Pages: 1
Was fooling around with htpasswd to try and make directories protected.
What I did was running "htpasswd -c /etc/httpd/.htpass username password"
A .htpass was created with my username and with a encrypted password.
THAT I cant believe could have caused ANY harm.
So, on we go. I opened httpd.conf, added these lines:
<Directory>
AuthType Basic
AuthName "Files"
AuthUserFile "/etc/httpd/.htpass"
Require valid-user
</Directory>
I then did apachectl stop, followed by apachectl start.
After that my webserver doesn't work.
So, of course I tried to comment the few added lines out, but noooooooo, of course that small experiment had to totally ruin my webserver.
The webbserver starts anyway, it seems, as you can see here.
# ps -e | grep httpd
14280 ? 00:00:00 httpd
Anyone? Please
EDIT: When I check the running processes NOW (5 minutes later) more httpd's have started and server seems to work again.
Strange....very strange. Hope its all ok now...might try some more getting protected folders, think I'm on the right way....I hope
# ps -e | grep httpd
14280 ? 00:00:00 httpd
14291 ? 00:00:00 httpd
14293 ? 00:00:00 httpd
14294 ? 00:00:00 httpd
14295 ? 00:00:00 httpd
14296 ? 00:00:00 httpd
Offline
the Directory command works better if you specify a directory path, that might have been what put Apache on the wacky side.
Offline
Pages: 1