ServerType standalone
ServerRoot "/var/www"

Timeout 300

#LockFile logs/accept.lock

MaxClients 150

Listen 8080
Listen 12.34.56.78:80

RewriteEngine on
RewriteCond   %{HTTP_USER_AGENT}  ^Mozilla
RewriteRule   ^/$                 /homepage.max.html  [L]

RewriteLog    "/usr/local/var/apache/logs/rewrite.log"
RewriteMap    examplemap txt:/path/to/file/map.txt 
RewriteRule   ^/ex/(.*) ${examplemap:$1} 
RewriteRule   ^$ RewriteRule

#1.3 legacy style
<IfDefine SSL>
	Listen 80
	Listen 443
</IfDefine>

<IfModule SSL>
	Listen 80
	Listen 443
</IfModule>

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<Directory "/var/www/htdocs">
	AllowOverride None
	Order allow,deny
    Allow from all
</Directory>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Options Indexes
    Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe

NameVirtualHost *:80

<VirtualHost *:80>
	ServerName www.domain.tld
	ServerAlias domain.tld *.domain.tld
	DocumentRoot /www/domain
</VirtualHost>