I copied his hosts and vhosts examples, replacing my site name in all the relevant fields. After I made the changes to the vhosts file, I could no longer start the apache web server. When I press the start button in the XAMPP control panel, the text area says "Busy" followed by "Apache Started". It does not change to running, and the admin button never becomes available, however.
Here is the example vhost from the tutorial
- 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 *:8080
#
# 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 *:8080>
DocumentRoot c:/xampp/htdocs
ServerName localhost
<Directory />
Options ExecCGI FollowSymLinks Includes Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot c:/web/diyws
ServerName diyws.ath.cx
<Directory />
Options ExecCGI FollowSymLinks Includes Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>
ErrorLog "c:/web/diyws/logs/error_log.txt"
CustomLog "c:/web/diyws/logs/access_log.txt" common
</VirtualHost>
I greatly appreciate any help anyone can offer. Thank you in advance.