Author Topic: Multiple domains, same docroot?  (Read 12118 times)

0 Members and 2 Guests are viewing this topic.

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Multiple domains, same docroot?
« on: November 17, 2009, 06:15:53 PM »
Hi,

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

Thanks,

dross

Offline Ric

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Multiple domains, same docroot?
« Reply #1 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?

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Multiple domains, same docroot?
« Reply #2 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.

Offline Ric

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Multiple domains, same docroot?
« Reply #3 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


Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Multiple domains, same docroot?
« Reply #4 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.


Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: Multiple domains, same docroot?
« Reply #5 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.

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Multiple domains, same docroot?
« Reply #6 on: November 18, 2009, 05:13:21 AM »
Thanks , Sir.   Ah, well I like special cases.  I have an idea that I'll try.