I am attempting to setup a virtual hosts entry using the latest version of XAMPP (see below). I have followed the instructions for the 404 Site Not found post on this site but am still getting the following error in Chrome using XAMPP Version 5.6.15 on Windows 10 Pro
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
ecommerce.dev
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
The following is the code from the Virtual Hosts (httpd-vhosts.conf) based on information in the post mentioned above.
- Code: Select all
<VirtualHost *:80>
DocumentRoot "D/xampp/htdocs/ecommerce/"
ServerName ecommerce.dev
<Directory "D:/xampp/htdocs/ecommerce">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
The "hosts" file is setup as follows:
- Code: Select all
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
127.0.0.1 ecommerce.dev #ecommerce website project
I don't know what I'm doing wrong, according to everything I've read this should be working. Any assistance in resolving this issue would be welcome.