Localhost not found the requested URL was not found on this server

Closed Bug 429746 Opened 15 years ago Closed 15 years ago

Categories

(Firefox :: General, defect)

Tracking

()

People

(Reporter: vpottier, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5

Using Mac X.4.11-Apache 2.0.59-php5 etc...
When I call http://localhost/ I get the 404 error message.
I can get this adress with FF 2, Camino... on my computer. But I just come to see it was wrong also with Safari 3.1 (4525.13)

When I enter a wrong adress (http://localhost/nothingthere) in Camino, I get :
-----------------------------
Not Found
The requested URL /http://localhost/nothingthere was not found on this server.

Apache/1.3.41 Server at 127.0.0.1 Port 80
-----------------------------

And in the error_log :
-----------------------------
[Fri Apr 18 23:33:59 2008] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/nothingthere
-----------------------------

But in FF 3 & Safari, I get :
-----------------------------
Not Found

The requested URL / was not found on this server.
-----------------------------
Without anything in the Log Console
But htp://127.0.0.1 runs on both FF3 & Safari !


Reproducible: Always

Steps to Reproduce:
1. enter http://localhost/ in the adress bar
2.
3.
Actual Results:  
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h2>Not Found</h2>
<p>The requested URL / was not found on this server.</p>
</body></html>


Expected Results:  
My root page !

I think I don't. I'm unable to manage it.
- I have reinstalled the system on my computer, and I don't remember I have set a proxy.

- I am connected to Internet via a little lan with a netgear ADSL modem router DG632 with DHCP server, but no proy parameter is shown.

- I the system preferences panel of the computer, there is no proxy configured for my connexion. There is no firewall configured to (we have not a fixe IP.

I have worked the whole day using FF2 on localhost. I was fine.
I just have switched for FF3 for trying anew the bug, it is persistent : 'Not found'  for localhost ! And same thing with Safari !
A problem in the last Gecko  ?
I don't remember whell but I think I have tryed the previous beta on localhost and they where runing fine. Is it a way to download FF 3.0b4 again for Mac to test it ? I volunteer to be a beta tester (in french a 'bêtat' is a poor minded man)

Ok, lt'us make some test...
========================
FF3.0b5 on Mac
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5
result : Not found
-----
FF3 > Préférences > Avancées > Réseau > Paramètres
That is 
FF3 > Preferences > Advanced > Network > Settins

'Pas de Proxy' (No Proxy) is selected. So i think I don'nt use a proxy....


Some hours later (a piece of 'Comté', a cheese from this part of france near Swizerland and a glass of red wine : two of my brothers have wineyard in the South of france...)
Borrying work ! Loading versions and versions... Accepting the licence, mounting the disc, launching the program, checking the page, copying the serial number, close se program, unmounting the disc, clearring the .dmg file... a "bêtat" work !
But if it can help ! Firefox is a very good work, anf a very handy program ! If I can give a hand to those working for me...
Here is the result of my work :
========================
Minefield 3.0b3pre on Mac : 2008010104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010104 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010104 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010604
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010604 Minefield/3.0b3pre
result : 'Not found'
========================
Minefield 3.0b3pre on Mac : 2008010704
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010704 Minefield/3.0b3pre
result : 'Not found'
========================
Minefield 3.0b3pre on Mac : 2008010804
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010804 Minefield/3.0b3pre
result : 'Not found'
========================
Minefield 3.0b3pre on Mac : 2008011004
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008011004 Minefield/3.0b3pre
result : 'Not found'
========================
Minefield 3.0b3pre on Mac : 2008012504
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008012504 Minefield/3.0b3pre
result : 'Not found'
========================
Minefield 3.0b3pre on Mac : 2008020104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008020104 Minefield/3.0b3pre
result : 'Not found'
========================
Firefox 3.0b3 on Mac : 2008020511
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3
result : 'Not found'
========================
Minefield 3.0b4pre on Mac : 2008021704
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b4pre) Gecko/2008021704 Minefield/3.0b4pre
result : 'Not found'
========================
Minefield 3.0b4pre on Mac : 2008030104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b4pre) Gecko/2008030104 Minefield/3.0b4pre
result : 'Not found'
========================
Firefox 3.0b4 on Mac : 2008030317
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b4) Gecko/2008030317 Firefox/3.0b4
result : 'Not found'
========================
Firefox 2.0.0.14 on Mac : 20080404
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
result : OK
========================
Minefield 3.0pre on Mac : 2008042104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9pre) Gecko/2008042104 Minefield/3.0pre
result : 'Not found'
========================

Other tests on programs using gecko

========================
FF3.0b5 on Linux-Mandriva : 2008032619
Mozilla/5.0 (X.11; U;Linuxi686;fr rv:1.9b5) Gecko/2008032619 Firefox/3.0b5 StandardSitemap/0.1
result : OK
-----
I have also a PC on Linux Mandriva with FF3.0b5 : no problem on localhost
========================
Safari Version 3.1 (4525.13) updated on the 03/23/2008
result : 'Not found'
----
I'm just seeing there is a new release of Safari (3.1.1). I'm downloading it and traying it. (I had sent a feedback for this bug to Apple)
Wait...
====
Safari Version 3.1.1 (4525.18) updated on the 04/21/2008
result : 'Not found'
========================
Camino Version 2008020612 (1.5.5Int)
result : OK
----
There is also a new release of Camino. Downloading...
========================
Camino Version 1.6Int (1.8.1.14 2008040911)
result : OK



-----------------
I have sorted the tests
Last working version : 2008010104
First broken version : 2008010604
It looks like someone, on Sundy 6 January, after the feasts has made some bad changes, with a headache, maybe... Happy new year !

2008-01-01 to 2008-01-06 is a five-day range... can you test some builds in between too to narrow it to a one-day range?

Bug 408881, perhaps?  If that's the case, 2008-01-05 should be the first broken build (and 2008-01-04 the last working build).

... and setting network.dns.disableIPv6 to false in about:config might make it work for you.

Minefield 3.0b3pre on Mac : 2008010104
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010104 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010204
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010204 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010304
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010304 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010404
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010404 Minefield/3.0b3pre
result : OK
========================
Minefield 3.0b3pre on Mac : 2008010504
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010504 Minefield/3.0b3pre
result : 'Not found'

Something turned wrong between 2008010404 and 2008010504

I don't know what is the file
firefox-3.0b3pre.en-US.mac.partial.2008010404-2008010504.mar
I guess there is somethink like changes between versions... The clue ? But I can't open it.

Sorry !
I have made mistakes ! I have loaded the different version, notably on 2008 01 05 in the begening of January, and I have found the same serial number : 2008010104.
I thought the serial numer was the same  2008010104 for the first to fifth January, because nobody would have worked during thoses days.
In fact I have loaded different versions and I have tested the same version several times !

Is it a way to put the serial number in the name of the .dmg file ? Or to put a file (kind of READ_ME.) with the serial number in its name beside the program ?
It could avoid this kind of mistake. I (me or other beta or 'bêtat' testers) could load and open several versions without making mistakes ?
We could load different versions together and open them without risk of confusion. (no Camino refefuse to load 2 versions together, or the server refuse to serve them)
=========================================
Back to
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5

network.dns.disableIPv6 is already at false

It's near midnight on this side of the ocean (Atlanctic !). I send my results and I go to bed.
I'm not there tomorow for other tests : I'm not a programmer but a friar in a community and the Monday is our free day (like your Sunday maybe, but for me Sunday is busy !)
Tomorrow : back to work. Peraps at the end of the day !

Have a good night ! And good luck !

Sorry, I got that backwards -- try setting network.dns.disableIPv6 to true.

Good morning !
Just before I leave, I've tested it 

Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; fr; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5
at http://localhost
with network.dns.disableIPv6 to true
AND IT RUNS !
Have a good day !

Summary: 404 Not Found on requesting http://localhost/ → 404 Not Found on requesting http://localhost/ due to ipv6 being enabled

Good to know.  I wonder why your Apache gets confused by ipv6 requests.

It works fine for me (also using Mac OS X 10.4.11 with the included Apache/1.3.41).

different VirtualHost? hard to tell without knowing how it's configured...

When I call http://localhost
with Firefox 3.0b5
with network.dns.disableIPv6 set to false
the result is the following code

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h2>Not Found</h2>
<p>The requested URL / was not found on this server.</p>
</body></html>

with nothing in the error_log.

When I call a non existent page e.g. http://localhost/nothingthere
with network.dns.disableIPv6 set to true
the response is

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /nothingthere was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.41 Server at 127.0.0.1 Port 80</ADDRESS>
</BODY></HTML>

with a line in the error_log :
[Tue Apr 22 14:32:47 2008] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/nothingthere

So I think that Apache gives its signature in the response to a bad request, and writes the tags in caps. And I think that with network.dns.disableIPv6 set to false, the response is not given by Apache. The system ? Firefox itself ?
Does Apache solve the the domain names ? and what if I call ftp://localhost ? Maybe it is a misconfiguration in my version of Apache if the port is not 80 in IPv6. But I don't know how works IPv6...

If Firefox does not recieve an anwser (misconfiguration, no open port...) I would see a sign of waiting...

I have tryied forcing the port 80 with network.dns.disableIPv6 set to false
http://localhost:80/
The result is always 'Not Found'

I can't see the headers (LiveHTTPHeaders disabled on this version of Firefox).
Is it a misconfiguration of the system ?
system : Mac OS X 10.4.11 (8S165)
kernel : Darwin 8.11.0

Maybe some informations :
1/--------
I have the extension ShowIp instaled
In the Preferences > Share
my computer's name is 'vp'
So when I try : http://vp.local/
(I also have tryed http://vp.local:80/ )
I get the same 'Not found'
And in the statut bar the ipv6 given is fe80::203:93ff:fec0:bf54%en0
for IPv4 : 192.168.0.2 (my adress on the LAN)

for http://localhost
the IPv6 is ::1
for IPv4 : 127.0.0.1

It looks like ShowIP can solve the Domain names
2/-------------
I have also Server Spy that indicates 
with network.dns.disableIPv6 set to false
for http://vp.local/
Apache/2.0.59
(Apache2 signature in the header)

for http://localhost
(unknown)
(No signature known... No header ?)


And for network.dns.disableIPv6 set to true
(when I get home pages)
Server Spy gives Apache/1.3.41
for both localhost & vp.local

I'm seeing in 'activity monitor' that
Apache2 & Apache are runing...
(Apache2-worker & httpd threads)
To much for me to manage !

Where can I get logs of Apache2 if runing with IPv6
(but server is still 'unknown' for localhost)
How can I switch Apache2 of and keep Apache1 running ?

Try manual gets if you want to see the headers.

"telnet 127.0.0.1 80"
"GET / HTTP/1.0"
"Host: localhost"
""

"telnet ::1 80"
"GET / HTTP/1.0"
"Host: localhost"
""

It looks like you have apache2 running on ::1 but apache1 running on 127.0.0.1,
in which case there is no FF3 bug, FF3 (and Safari) are doing the right thing
and preferring IPv6 over IPv4.  You need to stop the IPv6 server if you don't
want it running, or reconfigure it to serve the same content as the IPv4 server.
Normally you would have only one server on localhost handling both IPv4 and 
IPv6 (often by configuring it to listen on :: so it listens on all addresses
on one socket).

> Normally you would have only one server on localhost handling both IPv4 
> and IPv6 (often by configuring it to listen on :: so it listens on all
> addresses on one socket).

Ok. I have moved 'daemonic-apache2' startupItem to avoid launching tomorrow.
I will try with only one apache...
But I don't know how I must configure httpd.conf for IPv6...
Searching the web for an answer... And beeing a little more clever (less bêtat)

I had never used telnet. I could have tryed with curl... Thanks for the triks ('truc' in french)

Thanks

Tomorow I'm trying to run localhost with one apache. I will inform you of the result...

tested telnet :

vp: telnet ::1 80
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.0
Host: localhost

HTTP/1.1 404 Not Found
Date: Tue, 22 Apr 2008 21:38:47 GMT
Server: Apache/2.0.59 (Unix)
Content-Length: 198
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h2>Not Found</h2>
<p>The requested URL / was not found on this server.</p>
</body></html>
Connection closed by foreign host.

It's not a bug in Firefox.
Very sorry for having disturbed you...

But some years ago I have had the same kind of problem... And after an update it had disapeared (begining of Firefox 2 ? Safari ? I don't remember...)

Thank you for your patience (same word in french)
And good work on this very good program !

Status: UNCONFIRMED → RESOLVED

Closed: 15 years ago

Resolution: --- → FIXED

Resolution: FIXED → INVALID

You need to log in before you can comment on or make changes to this bug.

How do I fix requested URL not found on this server?

What's a simple way to fix the “Requested URL Was Not Found On This Server” 404 error?.
Check Incoming Links that Trigger a 404 Error..
Redirect With Htaccess..
Try Using a 301 Redirect..
Plan for Misspellings..
Identify the URL Returning the Error and Proceed to Redirect It..
Clear Your Browser's Cache..

Why my localhost is not working in xampp?

Resolve Apache port conflicts by changing your listening port to 8080. Include the listening port in the address when accessing localhost. Change your MySQL port to 3307 if another application is blocking the default port 3306.

How do you resolve HTTP Error 404 the requested resource is not found?

Retry the web page by pressing F5, clicking/tapping the refresh/reload button, or trying the URL from the address bar again. The 404 Not Found error might appear for several reasons even though no real issue exists, so sometimes a simple refresh will often load the page you were looking for.

How do I find my xampp server URL?

In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost. Before you can access the MySQL server, phpMyAdmin will prompt you for a user name and password.