I want to configure virtual hosts so that I can create new and unlimited subdomains simply by creating a new directory in the file system. I know this is possible, because my own webhost (ModWest.com) has configured their virtual hosts like this. I have tried asking them, but was just referred to the Apache docs.
EXAMPLE
/var/www/html/www/index.html
can be accessed at
http://www.domain.com/index.html
/var/www/html/sub1/index.html
can be accessed at
http://sub1.domain.com/index.html
/var/www/html/sub2/index.html
can be accessed at
I have looked at the Apache docs on mod_vhost_alias, but haven't found a concrete example of what I am looking for. If anyone has done something similar, I would appreciate any help you could give.
I am using:
Apache 2.0.40 on Redhat 8