WIN 10 XAMPP 7.0.9 Local Hosts Setup Solved
After much trial and error and many many XAMPP installs and uninstall. I finally
got it to work with information provided by Apache Lounge.
Windows hosts file:
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a ‘#’ symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. 127.0.0.1 dmreed 127.0.0.1 devsite
Apache httpd.conf file (required changes):
. . . # ServerRoot "G:/xampp/apache" . . . # Virtual hosts Include conf/extra/httpd-vhosts.conf . . .
Apache http-vhosts.conf file (for actual usage replace the [ and ] characters with < and > characters, respectively):
###################################################################### # G:\xampp\apache\conf\extra\httpd-vhosts.conf # # Location hostname url # g:/xampp/htdocs localhost http://localhost/ # g:/8081dmreed dmreed http://dmreed/ # g:/8082devsite devsite http://devsite/ ###################################################################### # Preserve localhost [VirtualHost _default_:80] DocumentRoot "g:/xampp/htdocs" ServerName localhost [/VirtualHost] # Site: dmreed [VirtualHost *:80] DocumentRoot "g:/8081dmreed" ServerName dmreed CustomLog "g:/8081dmreed/dmreed.access.log" combined [Directory "g:/8081dmreed"] Options All AllowOverride All Require all granted [/Directory] [/VirtualHost] # Site: devsite [VirtualHost *:80] DocumentRoot "g:/8082devsite" ServerName devsite CustomLog "g:/8082devsite/devsite.access.log" combined [Directory "g:/8082devsite"] Options All AllowOverride All Require all granted [/Directory] [/VirtualHost]