Services running

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I'm not sure if I have selected the correct newsgroups here but is there a
simple was to test which servers are running?

I have apache and IIS installed and if I run http://localhost I am not sure
which it is using or if they can both run simultaneously.

Any ideas?
 
Brian said:
I'm not sure if I have selected the correct newsgroups here but is there a
simple was to test which servers are running?

I have apache and IIS installed and if I run http://localhost I am not sure
which it is using or if they can both run simultaneously.

Any ideas?


You can use both at once, as far as I know, but you have to define different
ports. Example, run IIS on port 80, and Apache on some other port. Otherwise
HTTP requests come in on port 80 and conflicting services would try to
answer the request... I doubt it'd work (or even let you).
 
You can use both at once, as far as I know, but you have to define different
ports. Example, run IIS on port 80, and Apache on some other port. Otherwise
HTTP requests come in on port 80 and conflicting services would try to
answer the request... I doubt it'd work (or even let you).

Many thanks, how do you test which ports are being used for which server?
 
Well, they shouldn't be able to both be listening on port 80, unless you've configured one of the servers to do so. My guess, is that 1 actually isn't running, and possibly reported an error in the event log?

Matt Hawley, MCAD .NET
http://www.eworldui.net

I'm not sure if I have selected the correct newsgroups here but is there a
simple was to test which servers are running?

I have apache and IIS installed and if I run http://localhost I am not sure
which it is using or if they can both run simultaneously.

Any ideas?
 
I'm not sure if I have selected the correct newsgroups here but is there a
simple was to test which servers are running?

I have apache and IIS installed and if I run http://localhost I am not sure
which it is using or if they can both run simultaneously.

Any ideas?

I don't know about Apache. In IIS manager, right click on the default
site->properties. The website tab page will list the port.

The first web server installed will grab port 80 first.
Put an asp page (since asp is on by default in IIS 5.1-) in each web server
folder, the one that executes properly is IIS.

asp sample page which is a one liner:
<% response.write "This is a test" %>
 
in message
: I'm not sure if I have selected the correct newsgroups here but is there a
: simple was to test which servers are running?
:
: I have apache and IIS installed and if I run http://localhost I am not
sure
: which it is using or if they can both run simultaneously.

From a command-line:
telnet localhost 80
GET / HTTP/1.0


You may have to press ENTER twice and text must be UPPERCASE.
You'll get something like this plus probably the default page:

HTTP/1.1 200 OK
Date: Fri, 09 Apr 2004 10:28:45 GMT
Server: Apache
Last-Modified: Mon, 18 Aug 2003 19:59:03 GMT
ETag: "53c233-17d-3f413007"
Accept-Ranges: bytes
Content-Length: 381
Connection: close
Content-Type: text/html

or

HTTP/1.1 403 Access Forbidden
Server: Microsoft-IIS/5.0
Date: Fri, 09 Apr 2004 10:29:59 GMT
Content-Type: text/html
Content-Length: 172

If you know the page you're trying to load, you can do it like this:

GET /default.asp HTTP/1.1
Host: www.domain.com

This will also show the default page but don't forget to hit enter twice and
domain.com is a variable.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
Back
Top