Requested URL Not Found on this server (404 Error)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Requested URL Not Found on this server (404 Error)

Postby MichaelG7355 » 30. December 2015 07:50

Hello this is my first post.

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
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/"
    <Directory "D:/xampp/htdocs/ecommerce">
        AllowOverride All
        Require all granted

The "hosts" file is setup as follows:

Code: Select all
# localhost name resolution is handled within DNS itself.       localhost
#   ::1             localhost     #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.
Posts: 1
Joined: 30. December 2015 07:32
Operating System: Windows 10

Re: Requested URL Not Found on this server (404 Error)

Postby Nobbie » 30. December 2015 10:17

Code: Select all
DocumentRoot "D/xampp/htdocs/ecommerce/"

There is missing a colon ":" after D (i.e. D:/xampp/htdocs/ecommerce/). Also keep in mind, that Driveletters of network drives cannot be specified there (as they are unknown to System users, only to the logged in user).
Posts: 10661
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests