The Windows Platform for Internet Programming by jizhen1947

VIEWS: 4 PAGES: 31

									INT422




            INT422 – Internet III –
         Web Programming on Windows


                   Additional Detail –
         The Windows platform for web applications
INT422




         Windows Operating System
INT422


                     Windows operating system

            • The following is a quick review of internet
              programming related features and capabilities in
              the Windows operating system

            • Versions…
                  – Windows Server 2003
                  – Developers and small sites can also use Windows XP
                    Professional
                  – Windows Vista Business, available from ACS




         Week 1                      INT422                              3
INT422


                     Windows O/S continued

            • IIS is required
            • IIS is the Windows web / ftp / smtp server
            • IIS is included with the Windows O/S
                  – More info will be provided on later slides


            • The file system is very important – use NTFS




         Week 1                        INT422                    4
INT422


                  Windows O/S continued

            • Security considerations…

            • You will learn lots about the security features of
              the Windows operating system




         Week 1                  INT422                            5
INT422


                     Review

            • In this course, you are stepping up to the “big
              league” of Internet programming
                  – > 50% of Internet servers run on Windows
                  – > 65% of secure (commerce-related) Internet servers
                    run on Windows
                  – 9 of the top 10 Internet retailers run on Windows
                  – Best performance and feature set available
            • Why?
                  – Serious developers love this platform
                     • Warning – there’s a fairly steep learning curve
                  – Scalable, secure, reliable, feature-filled, etc.


         Week 1                         INT422                           6
INT422


                     Review

            • We’ll build on Internet programming concepts
              and knowledge that you have learned in
              previous semesters
                  – HTML, XHTML, DHTML, JavaScript
                  – Server-side programming concepts


            • To prepare for the “big league”, we’ll have to
              review some knowledge about Windows, and
              learn many new things, especially about security
              and IIS


         Week 1                      INT422                  7
INT422




                      IIS:
         Internet Information Services
INT422


                     IIS – Internet Information Services

            • IIS – what is it?
                  – Web server
                  – FTP server
                  – Mail server


            • It’s also a platform that runs Internet
              applications – this is its best feature!
                  – Internet applications run on a server
                  – Clients use these applications through a browser UI
                  – New – Web Services – application with no UI



         Week 1                       INT422                              9
INT422


                     IIS – FTP server

            • A few quick things about the IIS FTP server
                  – Standards-compliant
                  – Public content (“anonymous” user) is read-only, and is
                    stored in c:\inetpub\ftproot folder
                  – Can have private content
                     • Done using the FTP Virtual Folder feature
                     • If you create an FTP Virtual Folder that matches your
                       login name, points to your home directory, and assign
                       read-write permissions, then you get automatic / easy
                       private access to your home directory
                     • This feature has not been configured on warp




         Week 1                        INT422                                  10
INT422


                     IIS – Mail server

            • A few quick things about the SMTP mail server
                  – Standards-compliant
                  – Provides mail handling for incoming and outgoing
                    messages
                  – Allows you to write applications that send mail

                  – Does not – repeat – does not – implement a post office
                    with mailboxes (POP, IMAP, etc.)
                     • You have to add software to implement a post office




         Week 1                        INT422                                11
INT422


                     IIS – Web server

            • Standards-compliant

            • Has other great features too…
                  – WebDAV – Web Folders
                  – Internet Printing Services
                  – Will run ASP pages
                     • The original – “legacy” – server-side scripting platform
                  – Will run the new ASP.NET pages
                     • The .NET Framework must be installed
                  – Scalable – can host many web sites



         Week 1                         INT422                                    12
INT422


                     IIS integrates with…

            • The Windows security infrastructure
                  – Authentication
                  – Authorization
                  – File system permissions


            • Server applications
                  – SQL Server database
                  – Any other…




         Week 1                       INT422        13
INT422


                     IIS installation

            • If you have…
                  – Windows 2000 Server (all versions)
                  – Windows Server 2003 - Web Server Edition
            • It’s already installed

            • Otherwise… you’ll have to install it
            • How?
                  – Brief overview is on the next few slides




         Week 1                        INT422                  14
INT422


                     IIS installation

            • If you have…
                  – Windows XP Professional
                  – Windows Server 2003 (other than Web Edition)


            • You must be administrator
            • Get the Windows operating system CD
            • Control Panel >
              Add/Remove Programs >
              Add/Remove Windows Components
            • Find it and install it


         Week 1                      INT422                        15
INT422


                  Windows Vista Business - IIS

            • Open Control Panel
            • Click on “Turn Windows features on or off”
            • Must be running as Administrator




         Week 1                 INT422                     16
INT422


                  Windows Vista Business - IIS

            • Select desired
              features and
              click OK, this
              process may
              take a few
              minutes




         Week 1                INT422            17
INT422


                     IIS initial setup and configuration

            • After “install”, it’s
              ready to use

            • How do you know it’s
              running?

                  Browse to…
                  http://localhost




         Week 1                       INT422           18
INT422


                     IIS initial setup and configuration

            • The default folder for web content is…
              c:\inetpub\wwwroot
            • For the default web server instance, locate your
              web page content there
            • What’s the name of the default home page for
              the web site?
                  – default.htm (or default.asp for an ASP page)
                  – Note – after the .NET Framework gets installed, the
                    default home page name for an ASP.NET page is
                    default.aspx)



         Week 1                       INT422                              19
INT422


                  IIS initial setup and configuration

            • How do you manage and configure IIS?
            • Use the Computer Management application




         Week 1               INT422                    20
INT422


                     IIS initial setup and configuration

            • Default access…
                  – Public browsers get read-only access to content
                  – Can execute server-side scripts created by the web
                    page author
                  – Content is served in the security context of the
                    “anonymous” internet user IUSR_computername


            • This can be customized




         Week 1                       INT422                             21
INT422


                     IIS initial setup and configuration

            • How do you get content to the server?
            • You must have a valid user account
            • If you’re on the server…
                  – Work directly on the web content folder(s)
                  – Or, work in a “development” folder, and post to the
                    “production” folder when you’re ready
            • If you’re remote…
                  – FrontPage Extensions via Visual Studio .NET
                     • This is the preferred method
                  – Alternative – file share access to the content folder(s)



         Week 1                        INT422                              22
INT422


                     IIS important concept

            • How is your content organized on the IIS web
              server?
            • Tip – this is crucially important information !!!
            • An “application” is the organizational unit, and is
              stored in its own container
                  – The container is simply a folder (which includes files
                    and other folders)
            • Each application will have a name (or alias)
                  – You specify the name when you create a new
                    application in Visual Studio .NET



         Week 1                        INT422                                23
INT422


                     IIS important concept (continued)

            • To access (start/open/run) your application, you
              must specify its name in the URL

            • Example:
                  – Start the application in the home directory of “student”
                     • http://warp.senecac.on.ca/student




         Week 1                        INT422                             24
INT422


                     IIS important concept

            • FPSE – FrontPage Server Extensions
                  – Note – Visual Studio .NET also refers to this as “FPE –
                    FrontPage Extensions” (without the “Server” word)


            • A set of technologies that add functionality
              (content posting, administration)
            • Automatically installed when IIS is installed
                  – Don’t mess with them!




         Week 1                        INT422                             25
INT422




         Concept Review:
         Windows Security
INT422


                    Windows security

                  SECURITY IS VERY IMPORTANT

                  SECURITY IS VERY IMPORTANT

                  SECURITY IS VERY IMPORTANT

                  SECURITY IS VERY IMPORTANT

                  SECURITY IS VERY IMPORTANT



         Week 1                 INT422         27
INT422


                      Windows security terminology

            • Get familiar with these terms (homework!)
                  –   File system permissions
                  –   Network permissions
                  –   IIS permissions
                  –   Users, groups, and how to manage
                  –   Authentication
                  –   Credentials
                  –   Authorization
                  –   Impersonation
                  –   Security context




         Week 1                       INT422              28
INT422


                     Windows security tools

            • Get familiar with the tools to help you manage
              users, groups, permissions, authentication, etc.
                  – Explorer
                  – Computer Management
                  – IIS Manager (on your own computer)




         Week 1                     INT422                       29
INT422




         Getting Help
INT422


                      Getting help

            • Sometimes, it may appear that there is too much
              “help” available… however…
            • Be prepared to spend LOTS of time reading,
              researching, analyzing, and applying

            • Help resources include…
                  –   Course materials
                  –   Textbook
                  –   Online resources (particularly MSDN)
                  –   People – your professor, tutors, fellow students



         Week 1                         INT422                           31

								
To top