Link to home
Start Free TrialLog in
Avatar of Hatim1985
Hatim1985

asked on

Questions in apache 2.0 confiuration

Hi there,, i installed Apache 2.0 (enabled SSL) and i did two virtual hosts with different names,


by editing httpd.conf file

1. I want to configure my web server so that each virtual host records its access log to a separate file. and each log entry must contain the Common Log Format and the User-Agent and Referer fields. Additionally, the log should only record the IP address of the web client, not the hostname?

i want to configure my web server for the following security measures:

2. how to to create an admin group for authentication i.e the admin directory of the my server name is protected with basic authentication and only members of this group may be permitted to access the admin.

3. In private directory in my server name, i want to be accessible only through the secure server (HTTP over SSL). and also how to hosts only on a local computer network.

4. how to create another group (called logger) for authentication and configure my web server such that the logs directory of the my virtual host is accessible only for members of logger and admin group (using basic authentication) or for anyone who access from within the local computer network.

5. In the admin directory of the my virtual host, how can be protected except that it is protected with digest instead of basic authentication.



kindly i need answers to those questions in nice steps (please i don't want any links for explanation)
ASKER CERTIFIED SOLUTION
Avatar of Hatim1985
Hatim1985

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Hatim1985
Hatim1985

ASKER


Thanks routinet,,
im a bit confused in the Authentication and Authorization
here is the admin directory code as u can see bellow, i set user name and password for the admin  
and i just need to set members of admin to be permitted to access the admin directory.
 
could u plz see my code here

<Directory "~/www/admin">
     AuthType Basic
     AuthName "admin"
     AuthUserFile ~/apache/passwd
   #AuthGroupFile ~/apache/?
     Require group admin
     ErrorDocument 401 unauthorized.html
</Directory>

could someone plz help me in the comment line  
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial


u mean that create a file in apache directory and put this line
bestestbuds: friend1 friend2 friend3 as an example?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

thank you routinet
i also need to know how to let the private directory of my virtual host to be accessible only through the secure server (HTTP over SSL) and only to hosts on the local network?

here is my code inside my virtual host in ssl.conf

<Directory  ~/www/admin/private >
   Order Deny,Allow
   Deny from all
   Allow from local network
   Satisfy any
   ErrorDocument 403  /error.html
</Directory>

when i access from the local network to the private directory it gave me the error.html page!!
it should display the page inside the private directory  
can someone help me in this stage
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
was great