Hi I have been trying for hours with many tutorials and I still not able to get the virtual host running on windows8 platform. I am using xampp 1.8.3. My xampp folder is installed as xampp2 in the c-directory
Step 1: I edited the \System32\drivers\etc\hosts file as such
127.0.0.1 xampp.local
127.0.0.1 localhost
Step 2: I enabled the following lines in httpd.config:
Include conf/extra/httpd-vhosts.conf
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Step 3: I edited \apache\conf\extra\httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@localhost.com
DocumentRoot "C:\xampp2\htdocs"
ServerName localhost
ServerAlias localhost
<Directory "C:\xampp\htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@fountains.com
DocumentRoot "C:\Users\Sean\Documents\vhostprjs\foods"
ServerName xampp.local
ServerAlias www.xampp.local
<Directory "C:\Users\Sean\Documents\vhostprjs\foods">
Options All
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
Step 4: restarted xampp and tried localhost and it worked. But when I tried www.xampp.local\ chrome complains
Oops! Google Chrome could not find www.xampp.local
I really don't know what else to do.