Forum Moderators: phranque

Message Too Old, No Replies

Dynamically configure mass vhost for secure access?

         

gary_new

12:51 am on Feb 4, 2004 (gmt 0)

10+ Year Member



This is a thread split from my former posting titled "how to mod_rewrite http to https?"

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

jdMorgan

4:28 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



gary,

Hopefully, someone can answer your question... <bump>

Jim