I am currently trying to start up using Virtual Hosts using xampp with Apache. I can not figure out what is wrong with my code in the http-vhosts.config I have followed many tutorials and read a bunch of troubleshooting forums but cannot understand why my apache will not start if i try to implement a virtual host. Right now I am just trying to get local host to work.
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 email@example.com DocumentRoot "e:/xampp/htdocs" ServerName localhost ServerAlias localhost ErrorLog "logs/localhost-error.log" CustomLog "logs/localhost-access.log" common </VirtualHost> <Directory "E:/xampp/htdocs"> Options Includes FollowSymLinks AllowOverride All Order Deny,Allow Allow from all </Directory> # localhost name resolution is handled within DNS itself. 127.0.0.1 localhost ::1 localhost 127.0.0.1 foo.local