
Atualmente estou tentando iniciar usando Virtual Hosts usando xampp com Apache. Não consigo descobrir o que há de errado com meu código no http-vhosts.config. Segui muitos tutoriais e li vários fóruns de solução de problemas, mas não consigo entender por que meu Apache não inicia se eu tentar implementar um host virtual. No momento, estou apenas tentando fazer com que o host local funcione.
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 protected]
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
Responder1
Tente isto, adicione a tag Directory à tag VirtualHost
<VirtualHost *:80>
<Directory "E:/xampp/htdocs">
</Directory>
</VirtualHost>