Setting Virtual Host XAMMP with xp


Virtual hosting is a method that servers such as web servers use to host more than one domain name on the same computer, sometimes on the same IP address.
Virtual web hosting is one of the most popular hosting options available at the moment—probably because it is one of the most cost effective options on the market. Also known as shared web hosting, virtual hosting allows a website owner to have a site hosted on a web server that is shared with other websites. In simple terms, the virtual hosting company's server will allocate out hosting services and bandwidth to more than one website. Virtual web hosting is a cheaper hosting option because you won't have to pay for a dedicated server to host just your website.
Virtual web hosting is a good solution for small- to medium-sized )(and even some larger) websites that aren't constantly being visited or that have reasonable bandwidth needs.(


Go to :
 and open file hosts

# For example:
#          # source server
#              # x client host  localhost       joomla.  joomla.localhost  <== just for example


then edit httpd-vhosts.conf, in my instalation place in C:\xampp\apache\conf\extra
became like this

# Virtual Hosts
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at
# <URL:>
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# configuration.

# Use name-based virtual hosting.
##NameVirtualHost *:80
NameVirtualHost joomla.localhost:80

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
<VirtualHost *:80>
    ServerAdmin webmaster@joomla.localhost
    DocumentRoot E:\www\joomla
    ServerName joomla.localhost
    ServerAlias joomla.localhost
    ErrorLog E:\www\joomla\joomla.localhost-error_log
    CustomLog E:\www\joomla\joomla.localhost-access_log common
    <Directory "E:\www\joomla">
    Options Indexes Multiviews FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all


sumber :
Next Post »


Click here for comments
September 29, 2011 at 4:37 PM ×

i am new to this job and through this post i got huge knowledge about this concept above you have shared great knowledge.domain registration india

Congrats bro piyush23 you got PERTAMAX...! hehehehe...

comment please ... ConversionConversion EmoticonEmoticon

Thanks for your comment