G
gweilo8888
Guest
Hi all
I have a feeling the following is possible, with editing of vhost.conf - but I'm not sure how to achieve it. Thoughts?
What I have:
* Root access to dedicated server running CentOS3.6 and Plesk8
*Two domains. One currently in use with physical hosting, the other idle and unconfigured. We'll call them domain1.com and domain2.com.
What I need to do:
* domain1.com continues to function normally as it always has
* domain2.com redirects to domain1.com/subdirectory/
What I'd like to happen:
* When you go to domain2.com, it should preferably remain in the browser bar for the first page served from domain1.com/subdirectory without cheating and using frames
* Both domain2.com and www.domain2.com should forward to the subdirectory of domain1 (doesn't matter if the former forwards to domain1.com/subdirectiroy and the latter to www.domain1.com/subdirectory though)
For bonus points:
* Ideally, subdomain.domain2.com should forward to domain1.com/subdirectory/subdomain, if that's at all possible
The less manual editing of files each time a new subdomain is added, the better (ie. ideally I wouldn't need to physically add a subdomain, just anything.subdomain2.com would automatically go to subdomain1.com/subdirectory/anything without intervention from me after initial setup
What of this is possible, and how can I achieve it?
Thanks in advance for any help...
I have a feeling the following is possible, with editing of vhost.conf - but I'm not sure how to achieve it. Thoughts?
What I have:
* Root access to dedicated server running CentOS3.6 and Plesk8
*Two domains. One currently in use with physical hosting, the other idle and unconfigured. We'll call them domain1.com and domain2.com.
What I need to do:
* domain1.com continues to function normally as it always has
* domain2.com redirects to domain1.com/subdirectory/
What I'd like to happen:
* When you go to domain2.com, it should preferably remain in the browser bar for the first page served from domain1.com/subdirectory without cheating and using frames
* Both domain2.com and www.domain2.com should forward to the subdirectory of domain1 (doesn't matter if the former forwards to domain1.com/subdirectiroy and the latter to www.domain1.com/subdirectory though)
For bonus points:
* Ideally, subdomain.domain2.com should forward to domain1.com/subdirectory/subdomain, if that's at all possible
The less manual editing of files each time a new subdomain is added, the better (ie. ideally I wouldn't need to physically add a subdomain, just anything.subdomain2.com would automatically go to subdomain1.com/subdirectory/anything without intervention from me after initial setup
What of this is possible, and how can I achieve it?
Thanks in advance for any help...