Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 470
  • Last Modified:

apache-httpd configuration

I need to configure apache-httpd for protecting (to demand
a login and password) when accessing some script or page.
I know that for CERN-httpd there is "Protection" in .conf
files, but don't know how to set it in apache. Can somebody
help me???
0
pacho
Asked:
pacho
1 Solution
 
n3mtrCommented:
It involves setting up three files: .htaccess which resides in the direcory you want to protect, .htpasswd which holds the username and passwords, and an optional .htgroup which makes groups of users.  You can find out how to set them up at these locations:
http://www.apacheweek.com/features/userauth
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html

comment back if you have any problems
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now