ispCP - Board - Support
Same doc root for 2 domains? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Same doc root for 2 domains? (/thread-2019.html)



Same doc root for 2 domains? - robmorin - 12-20-2007 05:16 AM

Hello all....

I have a client who has 2 domains but he wants the same doc root for both and only to maintain one doc root for both, but he does not want an alias... he wants the end users to see either domain1 or domain2 and to be able to bookmark either... he does not want someone to type in domain1 and it simply goes to domain2...

On the vhcs2 i simply made domain1's doc root in the vhcs2.conf file go to domain2's doc root, but with fast cgi i cannot do this.... is there a way around it? should i modify the php4 wrapper script thing?

Thanks...

Rob..


RE: Same doc root for 2 domains? - BeNe - 12-20-2007 06:06 AM

There is something about it in the FAQ --> http://www.isp-control.net/component/option,com_easyfaq/Itemid,38/task,view/id,21/

Greez BeNe


RE: Same doc root for 2 domains? - robmorin - 12-20-2007 06:39 AM

Does not seem to work....

in the db it looks like this....

52 80 http://www.domain2beduplicated.com ok / 1 http://www.realdomain.com

when i type in domain2beduplicated.com it just forwards to realdomain.com rather than still show domain2beduplicated.com

I ran the request manager too and manually restarted apache..

Any ideas?
Rob..


BeNe Wrote:There is something about it in the FAQ --> http://www.isp-control.net/component/option,com_easyfaq/Itemid,38/task,view/id,21/

Greez BeNe



RE: Same doc root for 2 domains? - robmorin - 12-21-2007 11:49 PM

Actually its working now, i had to commnet out this line in teh domains entry in ispcp.conf
Redirect / http://www.realdomain.com/

now it works as expected....

Thanks...
Rob..

robmorin Wrote:Does not seem to work....

in the db it looks like this....

52 80 http://www.domain2beduplicated.com ok / 1 http://www.realdomain.com

when i type in domain2beduplicated.com it just forwards to realdomain.com rather than still show domain2beduplicated.com

I ran the request manager too and manually restarted apache..

Any ideas?
Rob..


BeNe Wrote:There is something about it in the FAQ --> http://www.isp-control.net/component/option,com_easyfaq/Itemid,38/task,view/id,21/

Greez BeNe