SSL stands as secure socket layer, of the main protocol which is used to secure the data transmission. In this article I am trying to discuss how this SSL certificate is used in client server architecture. First of all you should know the difference of "Authentication" and "Authorization". Authentication means validate the correct user, for instance most of times when you tried to log to the system, it will ask user name and password to log it. That is called as authentication. Only user who is given correct user name and password allow to log to the system. When you log to a particular site what are the things you are allowed to do and not to do, in other words the privileges that you have in that site called as Authorization. These two concepts are used when client (your browser) requests from server through SSL protocol. You may wonder what is the reason of having such a system. This all about trust. Once you type your favorite site, www.facebook
In name based virtual hosting we run several web sites in one IP address.To do that request from browser should come in HTTP/1.1 protocol. To demonstrate this process I used this scenario. Imagine we have three web sites called as www.bict,lk , www.ucsc.lk and www.scs.lk. And our apache server runs in 192.168.1.1IP address and 8080 port. Following document roots are used. www.bict.lk /var/opt/www.bict.lk/htdocs www.ucsc.lk /var/opt/www.ucsc.lk/htdocs www.scs.lk /var/opt/www.scs.lk/htdocs In an each htdocs directory you should create separate index.html files. note : You can change those document root in /etc/apache/sites-available/default file. And it has default document root as /var/www . To edit that use $ vi /etc/apache/sites-available/default command. There should be a index files (index.html) relevant to each web site. To make easy understand I explain this step by step . step 1. Edit the ports.conf file $vi /etc/apache2/ports.conf In thi