Hello all,
I have a server set up that uses vhosts and it works fine. I would like to do something that I haven't seen done before, and am wondering how it might be done.
I would like to have 2 virtual hosts that look like this...
(I realize my syntax isn't correct)
<VirtualHost 99.87.98.96>
ServerName myexample.com
DocumentRoot /var/www/myexample
</VirtualHost>
<VirtualHost 99.87.98.96>
ServerName myexample.com/other
DocumentRoot /var/www/myotherexample
</VirtualHost>
- <VirtualHost 99.87.98.96>
- ServerName myexample.com
- DocumentRoot /var/www/myexample
- </VirtualHost>
- <VirtualHost 99.87.98.96>
- ServerName myexample.com/other
- DocumentRoot /var/www/myotherexample
- </VirtualHost>
This is differnet than the normal scenario that might be solved by using something like (myexample.com and other.myexample.com).
I want the Virtual host to be determined by looking at the path also. I am thinking a solution will probably require mod_rewrite, but not sure how one would go about doing this.
If you are wondering why I need to do this the explanation is a little lengthy but I will attempt to answer here to try and avoid "why don't you do it this way..." type responses. I have software that I run that is licenced on a per domain level. It doesn't care about what happens after the domain. I am trying to figure out a way to use this software in a way that would allow me to seperate instances of it using virtual hosts but would not require me to get a new license for everytime I do this.
Thanks for any help or direction with this.
Terry Riegel
riegel@clearimageonline.com