Setting Virtual Host XAMMP with xp

--detail--


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.(http://en.wikipedia.org/wiki/Virtual_host)


 --1--

Go to :
C:\WINDOWS\system32\drivers\etc
 and open file hosts

#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host


127.0.0.1       192.168.1.83  localhost
127.0.0.1       joomla.192.168.1.83  joomla.localhost  <== just for example

--2--

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:http://httpd.apache.org/docs/2.2/vhosts/>
# 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
</Directory>
</VirtualHost>


--result--





sumber :
Previous
Next Post »

1 comments:

Click here for comments
Anonymous
admin
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 Anonymous you got PERTAMAX...! hehehehe...
Reply
avatar

comment please ... ConversionConversion EmoticonEmoticon

Thanks for your comment