Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 31st, 2005, 03:44 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default ASP Web application setup on IIS.

Hi I have one web application, which will run in LAN, now for user i have given them address of application as:
---
http://12.100.12.12/MIS/login.asp
---
(MIS is Vir Dir)
Now, drawback is that user can see the server's IP address.
Further he needs to specify "login.asp" -- which is not comfortable to them.

so, how do i setup to remove "12.100.12.12" and place a textual name, further it should redirect to login.asp automatically,

Server is usinr IIS 5.0.

Thanks in advance.


Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old August 31st, 2005, 11:21 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Okay, I got that it requres to create VD and user server name instead of IP addre.
Further create default.htm or default.asp to redirect to default page of site.

but what if server requires port number?
i.e. if it is like
---
http://12.100.12.12:1234/MIS/login.asp
---
in this case
---
http://servername/MIS
---
will not work.



Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old September 1st, 2005, 12:55 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Rupen,

You can configure which ports a server listens on via the internet services manager.

HTH,

Chris

 
Old September 5th, 2005, 03:58 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Hi Chris,

Although we have setup the site, so port number is known to use. The prob is that how we can make our VDir setup such that it can automatiacally goes to that perticular port.

Please review my last post.


Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old September 7th, 2005, 03:31 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Rupen,

If a client makes a request to port 80 as is the default for most users and your site does not listen on port 80, you cannot accept the request and then forward to another port.

You could set the site to listen on port 80 and your desired port and then add then redirect if they are using port 80...
Code:
If Request.ServerVariables("SERVER_PORT") <> "yourPortNumber" Then
    Response.Redirect "http://servername:yourPortNumber/yourPage"
End If
HTH,

Chris







Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS setup for W2K Pro ermutigen BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 May 1st, 2006 12:58 PM
Convert ASP web application to ASP.NET Steve777 ASP.NET 1.0 and 1.1 Basics 3 June 2nd, 2005 07:26 AM
Visual Studio IIS Setup rodmcleay ASP.NET 1.0 and 1.1 Basics 2 April 15th, 2004 08:20 PM
ASP.NET or IIS Application Yehuda ASP.NET 1.0 and 1.1 Professional 3 September 17th, 2003 11:13 AM
VB 6.0 IIS Application vs ASP.NET Yehuda Pro VB 6 0 September 17th, 2003 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.