<VirtualHost 192.168.0.1:80>
ServerAdmin apache@localhost.net
ServerName www.localhost.net
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# <Directory "/usr/lib/cgi-bin">
# AllowOverride None
# Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Order allow,deny
# Allow from all
# </Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Alias /doc/ "/usr/share/doc/"
# RedirectMatch ^/doc/apache2-doc/manual(.*)$ /manual$1
# <Directory "/usr/share/doc/">
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/255.0.0.0 ::1/128
# </Directory>
#########################
# Compressao de HTTP
#########################
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
DeflateFilterNote ratio
LogFormat '"%r" = (%{ratio}n) ' deflate
CustomLog /var/log/apache2/deflate.log deflate
AddOutputFilterByType DEFLATE text/html text/plain
</IfModule>
#########################
# Proxy e ReWrite
#########################
ProxyRequests Off
ProxyReceiveBufferSize 16384
RewriteEngine On
RewriteMap lb rnd:/etc/apache2/lista.txt
RewriteCond %{REQUEST_URI} ^/.*
RewriteRule ^/(.+)$ http://127.0.0.1:1000${lb:dynamic|1}/\
VirtualHostBase/http/www.localhost.net:80/$1 [P,L]
</VirtualHost>