Help - Search - Members - Calendar
Full Version: Virtual path, enabling two domains to share one directory
The Planet Forums > Control Panels > cPanel/WHM
catwalkx
I have a situation whereby a client has two seperate domains and want's them both to share the same member directory.

Ergo, www.site1.com would take his users to the members directory of www.site2.com when they login.

Must first inclination is to change the pointer in httpd.conf for the site that needs to be directed. So site 1 and site 2 would point to the same document root directory.

Before I do this (you can bet your unmentionables I backed up httpd.conf), my question is: can it be that simple?

On my server I have enabled php open_basedir protection, so I imagine I would have to excluse the relevant sites.

Or is there another way of achieving the sharing of one directory by two domains?

Many thanks,

James
swilliams
Yes, you should be able to just edit your httpd.conf file.

No need to worry about the php open_basedir protection, because that goes off of the base dir of the domains (which will both be the same).

I did the same thing before with one of my sites.
catwalkx
You mean ~splutter~ the newbie called it right? :-)

Excellent. Getting better at this. Huge thanks for your quick response.

James
Got-Hosting
Why not just use a parked domain? Seems a lot simpler.
catwalkx
The user has several websites that he wants to use the same content for. He want's to upload to only one directory, thereby supplying all the sites.

And the customer is always right :-)
Got-Hosting
Right. Exactly.

With a parked domain, you can point as many extra domains as you want to the same public_html directory.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.