# 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>
ServerName localhost
DocumentRoot "E:/xampp/htdocs"
<Directory "E:/xampp/htdocs">
Options +Indexes FollowSymLinks +ExecCGI +Includes
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
## My first domain ##
<VirtualHost *:80>
ServerName myfirstdomain.com
ServerAlias www.myfirstdomain.com
DocumentRoot "E:/xampp/htdocs"
</VirtualHost>
## My second domain for refactoring the FOBG site ##
<VirtualHost *:80>
ServerName refactor
ServerAlias www.refactor.com
DocumentRoot "E:/xampp/htdocs2"
<Directory "E:/xampp/htdocs2">
Options +Indexes FollowSymLinks +ExecCGI +Includes
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ASKER
ASKER
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.
TRUSTED BY
If everything is setups correctly you see see whatever is located at "E:/xampp/htdocs2"
1) You need named virtual host configured correctly.
2) The host name www.refactor.com needs to point to the IP address that Apache is listening on.
So, if you do "nslookup www.refactor.com" does it return the IP address that your server is listening on?