Forum Moderators: phranque
I discovered that what I was really trying to do was create a generic vhost block that dynamically changed some of the basic directives (i.e., DocumentRoot, Logs, etc) to allow a mass number of domains to use a single https connection.
[domain.tld...] = /home/domain.tld/htdocs
[secure.provider.tld...] = /home/domain.tld/htdocs
Essentially the same as discribed in the following document but making use of a secure connection, instead.
[httpd.apache.org...]
This document uses mod_vhost_alias to dynamically change the virtualdocumentroot directive based on the referring host. This is great for an unsecure connection, but when combined with a single secure certificate it would be necessary to further parse the URL and make the remaining parsed directory variables available.
Does anyone know if mod_vhost_alias is capable of reporting other URI variables more than the host?
Does mod_rewrite have a method for rewriting or supplying variables to the DocumentRoot or VirtualDocumentRoot directives?
Are there any other ways to pass variables to DocumentRoot or VirtualDocumentRoot?
Thank you for your thoughts and suggestions.
Respectfully,
Gary