Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Multiple sets of dynamic virtual hosts

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Where are the links?  
Author Message
weberjacob

External


Since: Jul 25, 2006
Posts: 1



(Msg. 1) Posted: Tue Jul 25, 2006 11:56 am
Post subject: Multiple sets of dynamic virtual hosts
Archived from groups: alt>apache>configuration (more info?)

Hi. I have a bunch of virtual hosts like this:
site1.john.company.com
site2.john.company.com
site3.john.company.com
site1.paul.company.com
site2.paul.company.com
site3.paul.company.com

I would like to use dynamic virtual hosting so I can just define
something like:
site1.(.*).company.com
site2.(.*).company.com
site2.(.*).company.com
and have them map to different directories, depending on the second
part of the URL (for example, /export/home/$1/www/)

I've looked over Apache's documentation for dynamic virtual hosting,
but I couldn't figure out how to apply it to this situation. One
problem is, it only describes how to make the DocumentRoot dynamic. But
my sites all have different Alias, SetEnv, and php_value commands,
which I also need to modify depending on the URL.

Is this possible? Thanks,
Jacob

 >> Stay informed about: Multiple sets of dynamic virtual hosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Tue Jul 25, 2006 9:52 pm
Post subject: Re: Multiple sets of dynamic virtual hosts [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Multiple sets of dynamic virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
dynamic virtual hosts and mod_rewrite - hi! i have a rather complicated mod_rewrite problem. i use dynamic virtual hosts with this rule: VirtualDocumentRoot /home/vhosts/%-2/www VirtualScriptAlias /home/vhosts/%-2/cgi-bin/ which sends requests to www.domain.tld or..

Newbie needs help with Mixing Dynamic and IP based virtual.. - Hi, I have a setup where the server is directly connected to a router as well as directly connected to a maintainance computer. I currently have virtual hosting done dynamically with the following two lines in the configuration: UseCanonicalName Off....

splitting logs per domain when using Dynamic Virtual Hosts - Hi all, I have the following issue: My apache2 is setup with Dynamic Virtual Hosts, so as long as the right directory stucture exists I can serve the website (e.g. the website www.domain.com relies on the existance of the path ..

Dynamic virtual hosts - config question about domainname s.. - Hi all, I want a format for the httpd.conf dynamic virtual hosts which is something like this: /www/domainname/thewholename/html, so examples: /www/mydomain.com/www.mydomain.com/html or /www/mydomain.com/this.one.also.mydomain.com/html I know that the...

Multiple and separate SSL Virtual hosts - Ok. I have in my httpd.conf: ------------------- Listen 80 Listen 443 <VirtualHost 1.2.3.4:80> ServerName www.xyz.com DocumentRoot /home/apache/www.xyz.com </VirtualHost> <VirtualHost 1.2.3.5:80> ServerName www.a...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]