Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to exclude an ip number from iis

Status
Not open for further replies.

GerritR

Technical User
Jun 18, 2002
41
NL
On my webserver (with w2k + iis 5.0) I have configured 10 ipadresses in the tcp/ip properties of the networkadapter
now I have 2 problems :
1. when I configure a website or ftp site in iis it is reachable for all ip adresses on my server while I only configured 1 ip adres and port 80
2. I have installed a web based E-mail client on my server.
witch is configured to use 1 ip adres that I didnt use before
now when I set the portnumber to 80 and reboot my machine all websites configured are stopped and when I try to start them I get an errormessage saying "the local port is already in use" So my question is how can i split those ip adresses to do what I want ????
 
This may work for you. Basically, you’re looking at what the user typed in and sending them to the appropriate address or site. If you want to narrow it down to just the domain when the user actually typed in then use option 2 in the code provided.

With this script, you could have multiple domain names pointing to one IP address – or in your case, multiple IP’s pointing to their appropriate IP address based on one central page.

Start of ASP code -----------
Dim strURL
strURL = lcase(Request.ServerVariables("HTTP_HOST"))

'The code below would be for option 2
'strURL = Lcase(Left(Request.ServerVariables("HTTP_HOST")))

Select Case strURL
Case " Response.redirect "/securitytest.asp"
Case "192.168.1.2"
Response.redirect "/website1/start.asp"
Case "192.168.1.3"
Response.redirect "/website2/start.asp"
Case Else
Response.Write "No server at the address."
Response.end
End Select

-------- End of ASP code -------


Hope that helps.
 
Thanks for the help, but this is not the answer I seek.

The real problem is that I want to offer a web-based email via port 80 (http) on one ip adres that is not configured in iis.

when i configure the mailserver to port 80 all my websites (configured in iis on another ip adress) are stopped.

So what can I do about this ?

Gerrit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top