Current time: 11-16-2024, 02:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
Same doc root for 2 domains?
Author Message
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #1
Same doc root for 2 domains?
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..
12-20-2007 05:16 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Same doc root for 2 domains?
There is something about it in the FAQ --> http://www.isp-control.net/component/opt...iew/id,21/

Greez BeNe
12-20-2007 06:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #3
RE: Same doc root for 2 domains?
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/opt...iew/id,21/

Greez BeNe
12-20-2007 06:39 AM
Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #4
RE: Same doc root for 2 domains?
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/opt...iew/id,21/

Greez BeNe
12-21-2007 11:49 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)