Please Help Me: VHosts
Posted: 20. October 2006 08:26
Hi i am having a problem with my virtual hosts with xampp, dont worry i already followed the help you gave to the others but my problem is different.
The problem is that when i setup the virtual hosts like you showed this guy on
instead of showing me(lan) and others(wan) who try to access either of the websites the apropriate index page,
Here's a copy of my vhosts.conf file
And Here's My hosts File
I havent changed anything else NOTHING
The problem is that when i setup the virtual hosts like you showed this guy on
- Code: Select all
http://community.apachefriends.org/f/viewtopic.php?t=20692&sid=0ceba3685644542d5d339e0c77e0f44e
instead of showing me(lan) and others(wan) who try to access either of the websites the apropriate index page,
- Code: Select all
kingdomcrc.org and urose.kingdomcrc.org
- Code: Select all
www.kingdomcrc.org/xampp/ or www.urose.kingdomcrc.org/xampp/
Here's a copy of my vhosts.conf file
- 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 127.0.0.1:80>
ServerName localhost
DocumentRoot "C:/Program Files/xampp/htdocs"
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName kingdomcrc.org
ServerAlias www.kingdomcrc.org
DocumentRoot "C:/Program Files/xampp/htdocs/kingdomcrc"
ServerAdmin admin@kingdomcrc.org
<Directory "C:/Program Files/xampp/htdocs/kingdomcrc" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName urose.kingdomcrc.org
ServerAlias www.urose.kingdomcrc.org
DocumentRoot "C:/Program Files/xampp/htdocs/urose"
ServerAdmin admin@urose.kingdomcrc.org
<Directory "C:/Program Files/xampp/htdocs/urose" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
And Here's My hosts File
- Code: Select all
127.0.0.1 localhost
192.168.254.1 kingdomcrc.org
192.168.254.1 www.kingdomcrc.org
192.168.254.1 ftp.kingdomcrc.org
192.168.254.1 urose.kingdomcrc.org
192.168.254.1 www.urose.kingdomcrc.org
I havent changed anything else NOTHING