- Code: Select all
#
# 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 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot C:/xampp/htdocs/
ServerName localhost
</VirtualHost>
NameVirtualHost *:80
<VirtualHOst *:80>
ServerName ec.localhost
DocumentRoot "C:xampp/ec/test"
ErrorLog C:/xampp/ec/logs/error.log
CustomLog C:/xampp/ec/logs/error.log common
<Directory "c:/xampp/ec/test">
Options Indexes FollowSymLinks
allow from all
order allow, deny
AllowOverride All
</Directory>
DirectoryIndex index.php index.html
</VirtualHost>
#
# VirtualHost example:
# Almost any Apach
had trouble before but now new pc and starting with headaches 'cause i'm a newbie to xampp and don't know what i'm doing so if some one can help great.