MSFN Forum: Setting Up 2 Domains - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting Up 2 Domains Rate Topic: -----

#1 User is offline   CrucesMpire 

  • Group: Members
  • Posts: 4
  • Joined: 25-April 07

Posted 25 April 2007 - 09:44 PM

Hello everyone. I have a Windows 2003 Server with Apache, PHP, MySQL installed. I also use a free DNS which is www.no-ip.com . My question is that I run 1 website for my gaming clan website. The problem is that my brother plays another game and is in a clan, but wants his own website.

My url is http://thempire.sytes.net

Can I also have http://thedugg.sytes.net on the same server. How would I setup both with different folders with the index pages in them.


Edit Update: If I setup 2 DNS in Windows Server 2003 can this work as well

This post has been edited by CrucesMpire: 25 April 2007 - 09:59 PM



#2 User is offline   phkninja 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 466
  • Joined: 28-February 05

Posted 26 April 2007 - 07:29 AM

this is set up with subdomains. I have never configured them but here are some links that might help

Apache Site
Easy Explaination

from cross referencing I think this is what you need
in httpd.conf
<VirtualHost *:80>
  ServerName thempire.sytes.net
  DocumentRoot /www
</VirtualHost>

<VirtualHost *:80>
  ServerName thedugg.sytes.net/
  DocumentRoot /www/thedugg
</VirtualHost>


so the main site is in thge www directory, and thedugg is in www/thedugg as a sub folder

This post has been edited by phkninja: 26 April 2007 - 07:48 AM


#3 User is offline   jcarle 

  • MSFN Master
  • Group: Developers
  • Posts: 2,572
  • Joined: 14-August 04

Posted 26 April 2007 - 07:41 AM

What you want is not sub-domains. What you need to do is use the concept of virtual hosting. It allows you to host more then one domain using the same physical machine.

http://httpd.apache....ocs/1.3/vhosts/

#4 User is offline   phkninja 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 466
  • Joined: 28-February 05

Posted 26 April 2007 - 07:49 AM

:) at jcarle, look at the first link in my post *lol*

#5 User is offline   jcarle 

  • MSFN Master
  • Group: Developers
  • Posts: 2,572
  • Joined: 14-August 04

Posted 26 April 2007 - 08:14 AM

View Postphkninja, on Apr 26 2007, 09:49 AM, said:

:) at jcarle, look at the first link in my post *lol*

Yea, sorry about that. I read your post but I didn't follow your links. My bad.

#6 User is offline   CrucesMpire 

  • Group: Members
  • Posts: 4
  • Joined: 25-April 07

Posted 26 April 2007 - 08:54 PM

Ok I have xamp and have httpd.conf open. I see where it has my default directory which looks like

DocumentRoot "/xammplite/htdocs"

where would I put the virtual Directories. Do I erase what I showed you and setup the Virtual Directory like you guys showed me.

Like this ............

<VirtualHost *:80>
ServerName thempire.sytes.net
DocumentRoot /xammplite/htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName thedugg.sytes.net/
DocumentRoot /xammplite/htdocs/thedugg
</VirtualHost>

#7 User is offline   CrucesMpire 

  • Group: Members
  • Posts: 4
  • Joined: 25-April 07

Posted 26 April 2007 - 09:35 PM

Thanks everyone. I figured it out..

http://thempire.sytes.net
http://thempire.serveblog.net

Both on same server thanks

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy