Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
CrucesMpire

Setting Up 2 Domains

Recommended Posts

CrucesMpire    0

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

Edited by CrucesMpire

Share this post


Link to post
Share on other sites

phkninja    1

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

Edited by phkninja

Share this post


Link to post
Share on other sites
jcarle    3
:) 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.

Share this post


Link to post
Share on other sites
CrucesMpire    0

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>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×