httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tino Schöllhorn <>
Subject [users@httpd] Mass VHost, Access Rights (Apache 2.0)
Date Mon, 24 Oct 2005 07:59:31 GMT

we are thinking about using mass virtual hosting to reduce the 
configuration effort. Simplified we want each virtual host like
(${customer} is a variable for the host-name)

<VirtualHost *:80>    	
     ServerName www.${customer}.com
     DocumentRoot /data/htdocs/customer

     <Location /awstats>
	AuthType Basic
	AuthName "Restricted Files"
	AuthUserFile /usr/local/apache/passwd/${customer}
	Require valid-user

As I understand the documentation it is quite simple to set up a mass 
VirtualHost-system. The only two things I could not find in the 
documentation was this:
If I like to restrict access to a specific resource (here: /awstats) do 
I have to specify the <Location> for each virtual host? Or is there a 
possibility to specify the access restrictions in a more abstract way so 
that we can specify the rule once? Ideally the solution would use 
different password-files.

For any help, links to other documentation I'd be very happy

With regards

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message