IIS [Internet Information Services]—provided by Microsoft
ASP.NET towards windows requires IIS5.0 or later
ASP.NET towards Linux requires Apache webserver
-> After installing IIS:-
http://localhost ---> if it is personal pc
http://servername ---> if IIS is running in remote location [network environment]
IIS installation comes with website called default website. This default website will maintain a link to physical path[c:\inetput\wwwroot]. This default website is provided with port number 80. Internet Services Manager tool[inetmgr.exe] is provided to configure web-server.
C:\INETPUB
|
---------------------------------------
| |
WWW Root(http) Mail Root(SMTP)
|
------------------------------------
| | |
Queue Badmail Drop
(Outgoing mails are (Bounced mails (incoming mails
stored here) are are stored here)
Stored here)
Start – run – inetmgr.exe[ok]
Website | HomeDirectory
| | |
Tcpport 80 | local path---c:\inetpub\wwwroot
The webpages placed into c:\inetput\wwwroot are the pages placed into defaultwebsite.
Note: - if oracle 9i is installed, it comes with oracle http server, in this case IIS will not be running [working], hence stop oracle httpserver by going to services[services.msc] of O/S before execution of your http websites.
Or
Goto taskmanager and stop oracle.exe,apache.exe[all],java.exe[if present].In the case of java.exe after stopping it just stop inetinfo.exe then automatically it will restart now you u can debug ur program.
- To open IIS just goto run-->type inetmgr
- In inetmgr you can create virtual directory only with default
Portno 80
- To restart IIS services then on command prompt c:\>iisreset /restart
Configuration of IIS
Virtual Directory: is an alias to physical directory present in website. The importance of virtual directory is categorization of WebPages with in website and applying security.
Creating Virtual Directory:
Start – run – inetmgr.exe [ok] --> Internet information Services
IIS
|
xxx(localcomputer)
|
|--websites
|
Defaultwebsites
|
Rt click, select new ---> virtual directory
|
Alias – AnyName
|
Directory – d:\virtual[foldername]
|
Finish
Browser:
http://localhost/AnyName/default.html
Note: - by default every virtual directory created under defaultwebsite will work with default port 80.