1
alandail
multiple sites on one machine?
  • 2006/4/29 18:31

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


How do I host multiple sites on one machine? I assume if I just put them each in their own folder, they can each have their own theme and own copy of xoops.

However how do I give them each their own domain name? What I would like would be to put my current site into a folder called "cavsworld", but instead of the URL to the home page being http://www.cavsworld.com/cavsworld, I want it to be simply http://www.cavsworld.com/ and then have another folder for another site with it's own domain name. That way they can all run off of one machine for now, and can be split off into their own machines as needed.

2
Bender
Re: multiple sites on one machine?
  • 2006/4/29 18:49

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Whatever hosting tool (Plesk, CPanel ...) you are using should allow you to setup where (which directory) your domain points to.

If the tool thats provided by your hoster does not offer this you need to talk to your hosting company. However most tools have this feature.

So you just point your domain to the correct directory and thats it.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

3
alandail
Re: multiple sites on one machine?
  • 2006/4/29 20:05

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


I should have clarified, I'm running my site off of a Mac Mini in my house over my dsl line. One IP address comes in - I want to add a second site that's independent of the one I'm using, all over the same IP address - is that possible?

4
seventhseal
Re: multiple sites on one machine?

yep - that's the way virtual hosting works. You have to be familiar with the way apache/tomcat works, but it can be done. If you want a simple way of configuring, I beleive there are versions of WebMin that would do the trick for you. The real challenge you may have is the MAC O/S - don't know it's limitations. I'm sure there are ways to do it though. Do a gogole search on MAC virtual hosting and see what comes up.
John Horne - a.k.a. - VelocityWebDev, Seventhseal, CreepingDeath
**********************************
VelocityWebDev Tech BLOG
VelocityWebHost Hosting and Design

5
Lance_
Re: multiple sites on one machine?
  • 2006/4/29 22:23

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


There's a beta of xampp for Mac OS X.
http://www.apachefriends.org/en/xampp-macosx.html
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

6
alandail
Re: multiple sites on one machine?
  • 2006/5/2 21:32

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


well, I ended up using a different approach - I wrote an areas module for my site (that's currently incomplete and hard coded to my setup that lets the multiple areas be on the same site - so only one registration needed.

I expanded my CavsWorld.com to include the Cavaliers, Browns and Indians, with each area showing the relevant information to the specific teams.

7
alandail
Re: multiple sites on one machine?
  • 2006/5/3 0:47

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


I still have a question about this, though.

I currently have two domain names pointing to my site

http://www.cavsworld.com
http://www.ohiosportsworld.com

The way XOOPS works is if someone accesses my site through the second name, all of the links point to the first name. Is there a way to make this dynamic? I want to gradually transition people (and search engines) to the new name.

8
JMorris
Re: multiple sites on one machine?
  • 2006/5/3 1:11

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


You might want to check out the following thread. It was quite helpful to me when I first started MyWebResource. It doesn't cover exactly what you're wanting to do, but the concept is similar enough to where you should be able to fill in the gaps.

Link: ...setting a standard url by .htaccess

Hope that helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

9
alandail
Re: multiple sites on one machine?
  • 2006/5/3 16:43

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


ok - I figured this one out

I edited mainfile.php to do the following

$requestedURL = strtolower($_SERVER['HTTP_HOST']);
if (substr_count($requestedURL,'cavsworld') == 0)
define('XOOPS_URL', 'http://www.ohiosportsworld.com');
else
define('XOOPS_URL', 'http://www.cavsworld.com');

now http://www.cavsworld.com (or anything similar) takes you to a site where all links are relative to http://www.cavsworld.com

while http://www.ohiosportsworld.com or anything similar takes you to a site were all links are relative to http://www.ohiosportsworld.com

I suspect it would be possible to have each URL point to it's own XOOPs database if I wanted them to behave differently as I originally planned, but instead all I want to do right now is transition from the old site name to the new site name without breaking people's links.

The multiple database ides is something I'll keep in mind for the future - it's clearly possible to host multiple domains on one machine, one copy of XOOPs (for easy maintenance), and a single IP address and have each domain appear to be totally independent to the outside world.

Login

Who's Online

285 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 285


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits