Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localhost : 404 not found

I am using XAMPP. and internal server of Django. When I browse to localhost or 127.0.0.1, It shows Not Found . HTTP Error 404. The requested resource is not found.

It sometimes works fine and other times pops up the error.

Moreover, when I browse to my project url, ie 127.0.0.1:8000/cc , the project url works fine.

Any ideas why is this happening?

like image 638
PythonEnthusiast Avatar asked Jul 23 '13 07:07

PythonEnthusiast


2 Answers

You need to add the port number to every address you type in your browser when you have changed the default port from port 80.

For example: localhost:8000/cc .

A little edition here is that it should be 8080 in place of 8000. For example - http://localhost:8080/phpmyadmin/

like image 140
George Chondrompilas Avatar answered Sep 27 '22 21:09

George Chondrompilas


I had the same problem and here is how it worked for me :

1) Open XAMPP control panel.

2)On the right top corner go to config > Service and Port setting and change the port (I did 81 from 80).

3)Open config in Apache just right(next) to Apache admin Option and click on that and select first one (httpd.conf) it will open in the notepad.

4) There you find port listen 80 and replace it with 81 in all place and save the file.

5) Now restart Apache and MYSql

6) Now type following in Browser : http://localhost:81/phpmyadmin/

I hope this works.

like image 41
Badri Paudel Avatar answered Sep 27 '22 22:09

Badri Paudel