# If you're trying to be friendly to mswin-using webmasters, this might # help. On the other hand, you may prefer not to coddle case-sensitivity # problems. DirectoryIndex index.html index.htm INDEX.HTM # a cgi directory for all the websites to share code the machine's # sysadmin has approved... for use by the site's webmasters only ScriptAlias /cgi-private/ /usr/local/cgi-private/ AllowOverride None Options ExecCGI Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 # and perhaps a few IP addresses of the webmasters' home systems. # local policy can be that anything intended to be used by everyone # in the world with a browser, should be kept in /home/websites, which # we keep active backups for. # a global script directory, also vetted by the machine sysadmin ScriptAlias /cgi-bin/ /home/websites/cgi-bin/ AllowOverride None Options ExecCGI Order deny,allow Allow from all NameVirtualHost aaa.bbb.ccc.ddd ServerName www.my-original.example.com ServerAlias www.my.example.com my.example.com ServerAdmin my.webmaster@example.com DocumentRoot /home/websites/virthost1/htdocs ScriptAlias /cgi/ /home/websites/virthost1/cgi/ Alias /icons/ /home/websites/virthost1/icons/ ErrorLog /var/log/apache/1/error_log CustomLog /var/log/apache/1/access_log_site1 common ErrorDocument 500 /errors/500.html ErrorDocument 404 /errors/404.html ServerName www.newsite.example.org ServerAlias newsite.example.org ServerAdmin weblords@example.org DocumentRoot /home/websites/virthost2/htdocs ScriptAlias /cgi/ /home/websites/virthost2/cgi/ Alias /icons/ /home/websites/virthost2/icons/ ErrorLog /var/log/apache/2/error_log CustomLog /var/log/apache/2/access_log common ErrorDocument 500 /errors/500.html ErrorDocument 404 /errors/404.html # keep people from snooping the website space for # undeclared directories Options None AllowOverride None # this should cover all the little clone websites AllowOverride FileInfo AuthConfig Limit Options Includes Indexes SymlinksIfOwnerMatch Order allow,deny Allow from all Order deny,allow Deny from all # this covers their icons Options MultiViews AllowOverride None Order deny,allow Allow from all # this covers their dedicated script directories; the sysadmin here # really has to trust these site admins, or they'll have to ask very # nicely to have their extra scripts installed. AllowOverride None Options ExecCGI Order deny,allow Allow from all