简体   繁体   中英

Localhost 404 Not Found XAMPP server

Good Day Everyone!

I am having problems with XAMPP in particular, I suppose that typing "localhost" alone in the browser should bring up something, but that does not been the case for me. I did typed in localhost:8080 and it works as it shows the xampp site. However, when I try to get into another folder let's say htdocs, I wrote it like this "localhost:8080/xampp/htdocs, it does not let me and it shows that object not found. Can someone please help me with this problem? I tried stopping and starting the server and restarting my computer but to no avail. I did ensure that the folder was there. Thank You!

I have been where you at. By default the root folder for the webserver is htdocs , so this means if you have a folder called test inside the htdocs folder, you would need to use this URL localhost:8080/test to access the content in the test folder.

I recommend you to change the document root in the config file httpd.conf to another directory or another drive. For example to change the root directory to C: then you would need to change these two lines in the httpd.conf

DocumentRoot "C:/"
<Directory "C:/">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM