Creating Virtual Directories While Developing Websites Computer Science

Add: 23-11-2017, 18:49   /   Views: 149

When you are using IIS to serve web pages what normally happens is you need to have all files which will be accessible over HTTP in the www root folder of the server.

What a virtual directory will do is enable you to give the impression that a file is in a certain place on the server, when infact it could be somewhere else on the machines hard disk or on another networked system.

When creating a site suppose actual pages are stored in F:Sitev2Beta but with the help of virtual directory one would be able to access the files by going to http://localhost/site.

There isn't really a need to use virtual directories unless you are using content which is spread out.

So the main purpose of virtual directory is to provide security.

so that anyone cannot access the original source file as it points a client to another directory.

Q2: Why do we create users/groups on server side while publishing websites? Also write the steps of creating users/groups on IIS.

Ans.

Reason for creating the users and groups:-

We create users to give the access of the server to the clients so that they can use the applications provided by the server itself.We create groups in order to limit the access of particular group of users for some applications.steps for Creating USERS :

GO TO START MENU THEN TO COMPUTER MANAGEMENT CONSOLE

CONTROL PANEL

ADMINISTRATIVE TOOLS

EXPAND LOCAL USERS AND GROUPS NODE AND RIGHT CLICK ON USERS

SELECT NEW USER

ENTER USERNAME AND PASSWORD RELATED AUTHENTICATIONS

CLICK CREATE AND THEN CLOSE

Steps for creating GROUPS:

RIGHT CLICK ON NEW USER AND SELECT PROPERTIES

CLICK ON MEMBER OF TAB

SELECT ALL THE GROUPS AND CLICK REMOVE

THEN CLICK ADD AND TYPE IN GUESTS AND CLICK OK

CLOSE THE COMPUTER MANAGEMENT WINDOW

After creating new users and groups, you can set NTFS permissions and security policies.

Then you can configure IIS to your new user account.

Q3: How does IIS6.0 differ from their earlier versions? Differentiate IIS from Microsoft vs.

Apache web server.

Ans.

internet information server is used to provide secure solutions for web services.

IIS6.0 has following features which makes it different from its earlier versions:

Increased reliability and security: it gives you significantly improved security.

These features increase the availability of your Web sites and applications and can reduce the time administrators spend managing these applications.

ASP.NET and IIS Integration:  In Windows Server 2003, the experience of using ASP.NET and the .NET Framework is improved because the request-processing architecture is integrated with IIS 6.0.

XML web services: IIS stores configuration settings in a hierarchical database referred to as the Metabase.

Earlier IIS version stored metabase data in binary format earlier IIS versions, making it difficult to edit the entries, or even to read them.

No Executable Virtual Directories: No virtual directories have executable permissions on them.

Difference between IIS and apache:FEATURESINTERNET INFORMATION SERVERAPACHE WEB SERVER

Independent request handler

yes

Yes but up to a certain extent i.e.

limited scope

Operating system dependability

yes

no

Developers

Microsoft

Apache foundation

.NET integration

Yes

No

Cross platform(Windows, Linux, Solaris)

No

yes

PART-B

Q5: What is the role and working of metabase file in the architecture of IIS?

Ans.

Metabase is plaintext, XML storage which contains the information regarding the configuration of IIS which is internet information manager.

Q6: How do IIS handle, process and response the multiple requests for web pages?

Ans.

Internet information server follows the following steps while processing requests.

First the request comes in http sys.

http.sys investigates whether the request is valid or not.

If the request is not valid, it sends a code for an invalid request back to the client.

If the request is valid, http.sys determines whether the request is for static content (HTML) because static content can be served immediately.

If the request is for dynamic content, http.sys checks if the response is located in its cache memory.

If the response is in the cache, http.sys gives the response quickly.

If the response is not cached, HTTP.sys determines the correct request queue, and places the request in that queue.

If the queue doesn’t have any processed then http.sys signals the WWW service to assign.

The worker process pulls and processes the request from the queue and checks the Url.

After the response is set back to the http.sys and which further respond back to the client who is making the request.

Q7: What are the various permissions available on website while working with IIS 6.0?

Ans: IIS 6.0- IIS 6.0 is the next generation of Web server available in the Windows Server 2003 platform.

IIS 6.0 provides several enhancements over IIS 5.0 that are mainly intended to increase reliability, manageability, scalability, and security.

IIS 6.0 is a key component of the Windows Server 2003 application platform, using which you can develop and deploy high performance ASP.NET Web applications, and XML Web Services.

We have various permissions available with IIS 6.0 which are described below:-

READ PERMISSIONS: It allows users to view the resource.

For a directory, this grants the user access to the directory.

For a file, this means the user can read the file and display it.

View permissions dictate who can see the page.

By default, view permissions are set to anyone who, as implied, means that anyone can see the page.

WRITE PERMISSIONS: it permits the users to change or create the directory or files.

DIRECTORY BROWSING: It gives the facility of the users to browse the files present within the directory.

LOG VISITS: IIS goes beyond the scope of the event-logging or performance-monitoring features of Windows 2000.

The logs can include information such as who has visited your site, what the visitor viewed, and when the information was viewed last.

You can monitor attempts, either successful or unsuccessful, to access your Web sites, virtual folders, or files. 

INDEXING: this is the permission regarding the web services.

EXECUTE: It consists of certain levels of scripting.

It gives the permissions like whether scripted files are allowed to be executed or not.