Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: MasthaX on May 11, 2007, 10:31:15 AM

Title: Apache multiple websites.(solved)
Post by: MasthaX on May 11, 2007, 10:31:15 AM
I have a question about Apache related to multiple websites. I have a webserver running and i bought a domain and redirected it to my own website.

i dont use my own DNS server from the SME box but i use my providers DNS. I have read a tutorial but its windows based.

But when i purchase a new domain i can redirect it to a IP address and not to a directory.

Example:

Domain i purchased: jurgen-meijer.nl
redirection: 84.41.201.***

// this works fine!

future domain: www.something.com
redirection: 84.41.201.***

i think i have to config this in virtual hosts section of apache but does it work when www.something.com is requested by a external computer
Title: Apache multiple websites.(solved)
Post by: skydivers on May 11, 2007, 10:50:37 AM
Yes, it just works. Your SME server makes the redirection for you. Just make sure you have the domains setup in your domains list.

Greetz
Title: Apache multiple websites.(solved)
Post by: MasthaX on May 11, 2007, 11:25:50 AM
So i should add the domains on my server and connect an ibay to it? could you show me an example plz
Title: Apache multiple websites.(solved)
Post by: skydivers on May 11, 2007, 11:38:13 AM
Quote from: "MasthaX"
So i should add the domains on my server and connect an ibay to it? could you show me an example plz


You add the domains to your domains list and you point an ibay to the specific domain.

Example:

yourserver.com -> primary ibay
myserver.com -> webserver (where webserver is just an ibay that you created)
Title: Apache multiple websites.(solved)
Post by: MasthaX on May 11, 2007, 12:08:13 PM
yeah but what i mean is:


mywebsite.com > 84.41.201.*** >> primary
anotherwebsite.com > 84.41.201.*** >> anotheribay


does that work? im not at home at the moment so i wil test it at home later.
Title: Apache multiple websites.(solved)
Post by: skydivers on May 11, 2007, 12:22:35 PM
Quote from: "MasthaX"
yeah but what i mean is:


mywebsite.com > 84.41.201.*** >> primary
anotherwebsite.com > 84.41.201.*** >> anotheribay


does that work? im not at home at the moment so i wil test it at home later.


Yes that works.
You SME server redirects to the correct ibay. You don't have to do anything with the IP.
Title: Apache multiple websites.(solved)
Post by: MasthaX on May 11, 2007, 12:25:27 PM
Great! i will report my findings when i get home.
Title: Apache multiple websites.(solved)
Post by: MasthaX on May 11, 2007, 02:45:39 PM
I have tested it and it works correct! One perfect OS to me :)