[users@httpd] Mass VHost, Access Rights (Apache 2.0)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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
    ServerAlias customer.myhost.com
    DocumentRoot /data/htdocs/customer

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

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
Tino


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux