PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.www.webmaster > Two domains one server
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Two domains one server

Réponse
 
LinkBack Outils de la discussion
Vieux 11/09/2007, 15h36   #1 (permalink)
Danny
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Two domains one server

Hi all,

Say that I have two domain-names x.com and y.com, and one physical
server with a fixed IP.

Is it possible to set the x.com clients to be directed to virtual
directory c:\inetpub\wwwroot\x and y.com clients to virtual directory
c:\inetpub\wwwroot\y ?

Using Win server 2003 and IIS 6.

Thanks,
Danny

  Réponse avec citation
Vieux 11/09/2007, 19h52   #2 (permalink)
Mark Goodge
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Two domains one server

On Tue, 11 Sep 2007 07:36:07 -0700, Danny put finger to keyboard and
typed:

>Hi all,
>
>Say that I have two domain-names x.com and y.com, and one physical
>server with a fixed IP.
>
>Is it possible to set the x.com clients to be directed to virtual
>directory c:\inetpub\wwwroot\x and y.com clients to virtual directory
>c:\inetpub\wwwroot\y ?


Yes.

>Using Win server 2003 and IIS 6.


That's a pretty simple task which should be more than adequately
covered in the server documentation. Alternatively, the magic phrase
you're looking for is "virtual hosting" - combine that with a keyword
of "iis" and Google will give you plenty of useful results. When I did
it just now, the first item in the results turned out to give detailed
instructions for doing exactly what you want.

Mark
--
Blog: http://Mark.Goodge.co.uk Photos: http://www.goodge.co.uk
"Wherever life may take me, I know that it won't break me"
  Réponse avec citation
Vieux 12/09/2007, 00h00   #3 (permalink)
SpaceGirl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Two domains one server

Danny wrote:
> Hi all,
>
> Say that I have two domain-names x.com and y.com, and one physical
> server with a fixed IP.
>
> Is it possible to set the x.com clients to be directed to virtual
> directory c:\inetpub\wwwroot\x and y.com clients to virtual directory
> c:\inetpub\wwwroot\y ?
>
> Using Win server 2003 and IIS 6.
>
> Thanks,
> Danny
>


Yes.

Fire up IIS admin. You can create as many web sites as you like. Each
can have any folder anywhere. If this is a commercial server, the very
first thing I'd do is DISABLE and DELETE the default site. It's a
security risk.

On our server we have a RAID mapped to e:\ that contains all of our
sites in subfolders. On our main server, that's about 30 sites. In IIS,
there are 30 web sites defined, all pointing at folders on e:\, and
split between a couple of IPs. The way IIS resolves sites to folders is
via the HTTP header information. You can see this information by
right-clicking your web site name, choose properties, and in the Web
Site tab of the dialog click Advanced. In here you can add as many web
site domain names as you like*, against whatever IP addresses IIS
detects are available.


* of course, the names need to be registered, and your Name Server must
have the IP address of your server.

This is a little complicated I guess if you've never used IIS before. I
have a document I wrote describing all of this that I wrote for our
support teams - I could publish it online on Thursday if you like. It
pretty much covers all of this, plus how to get Perl, PHP and MySQL
working perfectly with IIS too.


--

x theSpaceGirl (miranda)

http://www.northleithmill.com

-.-

Kammy has a new home: http://www.bitesizedjapan.com
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h39.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09822 seconds with 11 queries