Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: drossman on November 17, 2009, 06:15:53 PM

Title: Multiple domains, same docroot?
Post by: drossman on November 17, 2009, 06:15:53 PM
Hi,

Is it possible to run TP from one docroot shared by multiple domains?

Thanks,

dross
Title: Re: Multiple domains, same docroot?
Post by: Ric on November 17, 2009, 07:25:05 PM
everything is so domain specific

License etc. etc.

would you have separate trades for all the different domains?
Title: Re: Multiple domains, same docroot?
Post by: drossman on November 17, 2009, 07:33:52 PM
I will have separate trades.  Maybe I can create subdirectories under the docroot like tp-domani1, tp-domain2, etc and use mod_rewrite with rewriteconditions per domain.  I can't think of a better way at the moment.
Title: Re: Multiple domains, same docroot?
Post by: Ric on November 17, 2009, 08:02:34 PM
never quite seen a setup where bunch of domains all serve the same content.

but the rewrite would be one way to do it.... not entirely sure of the inner workings of TP and not too sure how dependent it is on the /tp directory

From a programming standpoint... not necessarily a web serving one

Title: Re: Multiple domains, same docroot?
Post by: drossman on November 17, 2009, 08:11:44 PM
They share a docroot, but they don't serve the same content.  Basically, there are a few scripts generate different content based on the domain name.  I'm using it for domain parking.

I'll give the rewrite rules a try and see what happens.

Title: Re: Multiple domains, same docroot?
Post by: ip0li on November 18, 2009, 04:44:50 AM
TP was not coded for special cases like this one and it won't work because of paths , domain names etc etc.
Title: Re: Multiple domains, same docroot?
Post by: drossman on November 18, 2009, 05:13:21 AM
Thanks , Sir.   Ah, well I like special cases.  I have an idea that I'll try.