Same port

Same port

am 17.01.2008 23:41:20 von John

I have two websites I am trying to host. I go to IIS manager>
Websites> New website, and try to browse to the path and select the
directory. I assign port 80 to both, however on the second one it
tells me "the port is already used by another site. Please use an
unused port."
My question , are't all sites using port 80 and if thats not the case
and I use another port, can it be seen by all on the internet?

Would appreciate your input.

Re: Same port

am 18.01.2008 19:19:00 von Rick Barber

Hi John,

The default port for a website is port 80. And you can only have one set of
unique bindings on a server, so if both sites are using 'all unassigned' for
the IP address, port 80, and for the host headers then you will get
the error that you see. You will need to make each of the sites unique, so
they either need to use a different IP address, a different port number, or
host headers. If site #1 is domainA.com, and site #2 is domainB.com, you
can use the same port 80, and the same IP address, just add www.domainA.com
and domainA.com as host headers for site#1, and www.domainB.com and
domainB.com as host headers for site#2.

--
Rick Barber

http://www.orcsweb.com
Managed Complex Hosting
#1 in Service and Support

"john" wrote in message
news:5bf934fa-a6bf-4ef5-aa2f-21fe4e644eb8@i12g2000prf.google groups.com...
>I have two websites I am trying to host. I go to IIS manager>
> Websites> New website, and try to browse to the path and select the
> directory. I assign port 80 to both, however on the second one it
> tells me "the port is already used by another site. Please use an
> unused port."
> My question , are't all sites using port 80 and if thats not the case
> and I use another port, can it be seen by all on the internet?
>
> Would appreciate your input.

Re: Same port

am 18.01.2008 21:44:01 von Kristofer Gafvert

Hi John,

You cannot have multiple websites using the same port, ip address and host
header. Something of it must be unique, so the usual approach is to use host
headers to host multiple websites.

You can read more about this in the following article:

"Using Host Headers to host multiple websites on IIS 6.0"
http://www.gafvert.info/iis/article/iis_multiple_websites.ht m

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"john" skrev i meddelandet
news:5bf934fa-a6bf-4ef5-aa2f-21fe4e644eb8@i12g2000prf.google groups.com...
>I have two websites I am trying to host. I go to IIS manager>
> Websites> New website, and try to browse to the path and select the
> directory. I assign port 80 to both, however on the second one it
> tells me "the port is already used by another site. Please use an
> unused port."
> My question , are't all sites using port 80 and if thats not the case
> and I use another port, can it be seen by all on the internet?
>
> Would appreciate your input.

Re: Same port

am 31.03.2008 17:49:01 von Kristofer Gafvert

So the domain name resolves?

Do you have a firewall blocking port 80?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"william" skrev i meddelandet
news:9D0E894D-8084-4A16-B4B8-DE59CCFE299D@microsoft.com...
> Hi Kristofer,
>
> I've configured my web application as web site by using port 80, and use
> myapp.company.com as host header. I configured this in hosts file on IIS
> server machine(windows 2003). I am able to browse my web site by
> http://myapp.company.com/. Then I put entry in my hosts file on my local.
> assuming the IIS server machine name is IISServer, in my hosts file, the
> config looks like IISServer myapp.company.com. When I tried to browse the
> web
> site by http://myapp.company.com/, I got "DNS lookup failed" error. I
> could
> ping IISServer from command line.
> Any idea?
>
> Thanks.
>
> William
>
> "Kristofer Gafvert" wrote:
>
>> Hi John,
>>
>> You cannot have multiple websites using the same port, ip address and
>> host
>> header. Something of it must be unique, so the usual approach is to use
>> host
>> headers to host multiple websites.
>>
>> You can read more about this in the following article:
>>
>> "Using Host Headers to host multiple websites on IIS 6.0"
>> http://www.gafvert.info/iis/article/iis_multiple_websites.ht m
>>
>> --
>> Regards,
>> Kristofer Gafvert
>> http://www.gafvert.info/iis/ - IIS Related Info
>>
>>
>> "john" skrev i meddelandet
>> news:5bf934fa-a6bf-4ef5-aa2f-21fe4e644eb8@i12g2000prf.google groups.com...
>> >I have two websites I am trying to host. I go to IIS manager>
>> > Websites> New website, and try to browse to the path and select the
>> > directory. I assign port 80 to both, however on the second one it
>> > tells me "the port is already used by another site. Please use an
>> > unused port."
>> > My question , are't all sites using port 80 and if thats not the case
>> > and I use another port, can it be seen by all on the internet?
>> >
>> > Would appreciate your input.
>>
>>