Setting up a Virtual Host
Setting up a Virtual Host
When you want to surf a particular site, more often than not, you only type in the keyword of the site in the URL box and the whole address is later being populated by the browser itself. This happens because the header that you put in the address bar is transformed into an IP address employed to locate the web server hosting the site. When a web server, an Apache server for instance, receives your site request, it determines the address that you entered and redirects the request to the programmed page, as the web administrator of the site has configured Apache web server to do so.
Setting up an apache virtual host is simple. The address in which Apache can be configured is through [/etc/httpd/conf/httpd.conf.]. Now if you type this in your status bar, a window will open and show a directory of Apache IP addresses and virtual hosts. This is the file where you can add your own virtual hosts. Once you have configured this file by adding different sites you want to host, Apache will accept requests from users and direct them to the right pages of the domain's sites,
