I want to use domains like xxx.abc.domain.tld.The xxx is my folder to access. I tried it with the rewrite rules, but I can't get it working, because I don't know how to get the part xxx from the SERVER_NAME into my RewriteRule.This was my try:UseCanonicalName Off# include the IP address in the logs so they may be splitLogFormat %A %h %l %u %t \%r\ %s %b vcommonCustomLog /var/log/apache2/vaccess.log vcommonRewriteEngine On# a ServerName derived from a Host: header may be any case at allRewriteMap lowercase int:tolower## deal with normal documents first:# do the magicRewriteCond ${lowercase:%{SERVER_NAME}} ^.+\.abc\.domain\.tld$RewriteRule ^(.*)$ /var/www/abc.domain.tld/[xxx-part]/$1 [L]Perhaps there is a better solution.In generally I want to create a dynamic login system with mod_auth_mysql and for each xxx is a seperate user database.I would prefer the domain/address syntax abc.domain.tld/xxx, but I don't know how to realize it.Thanks for any advices.
Virtual hosting
apache2;mod rewrite