Du kan hoste mange ved at lave en fil der hedder vhost.map og placere f.eks. i mappen /homewww/ hvor du definerer hvor du har filerne liggende
vhost.map
www.host1.dk /homewww/host1.dk/www
host1.dk /homewww/host1.dk/www
www.host2.dk /homewww/host2.dk/www
host2.dk /homewww/host2.dk/www
ændring i httpd.conf
<VirtualHost *>
RewriteEngine on
RewriteMap lowercase int:tolower
# define the map file
RewriteMap vhost txt:/homewww/vhost.map
# deal with aliases as above
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
# this does the file-based remap
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/$1
RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/cgi-bin/$1 [T=application/x-httpd-cgi]
</VirtualHost>