i have bought 2 domain names, (domain1.net and domain2.cl), well my problem is that i have tryed to put them too locating to my computer but in diferent folders. domain1 in c:\domain1 and domain 2 in c:\domain2, now i put this in my httpd-vhost.conf
- Code: Select all
<VirtualHost domain2.cl:80>
ServerAdmin myownemail@domain.com
ServerName domain2.cl:80
DocumentRoot "c:/domain2"
<Directory "c:/domain2">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ok.. the problem is that the 2 domains point me to the htdocs folder of xampp!
i will put my httpd-vhost.conf if someone can find a problem, correct me please.
- 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 *: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@dummy-host.example.com
## DocumentRoot /www/docs/dummy-host.example.com
## ServerName dummy-host.example.com
## ServerAlias www.dummy-host.example.com
## ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>
##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>
<VirtualHost domain2.cl:80>
ServerAdmin myownemail@domain.com
ServerName domain2.cl:80
DocumentRoot "c:/domain2"
<Directory "c:/domain2">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
well... lets see if someone can help!
bye!