Explain functions of a web server? (ASP.NET Interview questions)

A web server is a software which runs inside the server and helps us to host websites. Some of the famous web servers are Apache, IIS (Internet information server) and Sun java system web server. Following are the functions of web server:-

  • Function 1:- The first important function of web server is to host our website on the internet and deliver our web pages to end users. Web server delivers content to end user browsers using HTTP protocol and it can also deliver in various formats like HTML, XML etc.

web pageClient browser interacts with webserver in three steps:-

  1. Client sends a request to the webserver. The request can be for getting a page or sending some data.
  2. Web server receives the request and gets the web page as per request.
  3. This page is then sent as HTML response to the browser.
  • Function 2:- Web server helps you run server side languages like JSP, ASP.NET , PHP etc. Server side languages are needed to connect to the database, do validation etc. Web server helps to run these server side language pages.
  • Function 3:- Web server also helps to implement security for web pages. For example you can use SSL (secured sockets layer) with webserver and ensure that all communication between client and server happens in an encrypted manner. For example below is a simple figure which shows without SSL how the data is not encrypted when browser and web server communicate but the time we put SSL everything is communicated in an encrypted manner which leads to more security. SSL sites are surfed with “https” while non-ssl sites are surfed with only “http” i.e without a “S”.
  • Function 4:- The other important function of web server is to ensure stability in websites. Inside one webserver we can host multiple website. But of one website goes down due to some reason the other website should work properly. Below is a simple image snapshot which shows two websites hosted “WebSite1” and “WebSite2” inside IIS (Internet information server). IIS is a webserver created by Microsoft. Now if some problem happens with “Website1”, “WebSite2” still keeps running. This happens because web server provides isolation between websites hosted.

start page


About c# and .NET Interview questions

This blog is for developers who want to crack .NET and C# interviews. It has all tips and tricks needed to crack .NET interviews , C# interview , SQL Server interview , Java interview , WCF Interview , Silverlight interview , WPF interview , LINQ interview , Entity framework Interview. Do not forget to watch our Learn step by step video series. Learn MVC in 16 hours:- https://www.youtube.com/watch?v=Lp7nSImO5vk Learn AngularJS Step by Step:- https://www.youtube.com/watch?v=0kmdjqgO9IY Learn Design Pattern in 8 hours:- https://www.youtube.com/watch?v=YDobmucohqk Learn C# and .NET in 60 days:- https://www.youtube.com/watch?v=yh2SrzCkNQA Learn MSBI in 32 hours:- https://www.youtube.com/watch?v=mGPJx3ocFgg Learn SharePoint Step by Step in 8 hours:- https://youtu.be/C2fW76SwJNU
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s