Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Apache retrieves wrong documents instead of "throwing" 404

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
server-status reporting wrong traffic - Hi, The shows me apache had 22.3 MB since it was started exactly 1 day ago. But when analyzing the logs (And count rules in the firewall) it's more like 223Mb. Are there any known issues why this counting by apache could go..

Is Apache redirecting? - I'm using a self compiled copy of Apache 1.3.27 with ApacheSSL 1.48, SunONE ASP 3.6.1 and the Frontpage v5. I had a difficult time getting these modules all working together, the Frontpage I have several..

Apache Cluster - Hiya all... Looking for some good how-to's, docs on the proper way to build a website with apache servers. There's a lot of info out there and I'm not sure if one is better than the other. Could anyone recommend

ssl apache password - Hi ,I've ssl on apache creating my own X509 . my question is that when i server it asks me password . I want to server with cron daemon but it not works cause of this password . Any ideas ?...

problem with apache - Hi I have installed apache with mysql and php and I have the follow problem: [Fri Jul 11 10:21:31 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for [Fri Jul 11 10:21:31 2003] [crit]..
Next:  Apache: Which version  
Author Message
dk_sz

External


Since: Feb 14, 2004
Posts: 23



(Msg. 1) Posted: Sun Jul 13, 2003 11:51 pm
Post subject: Apache retrieves wrong documents instead of "throwing" 404
Archived from groups: alt>apache>configuration (more info?)

Testet on localhost (Win2K+ Apache) server.

If e.g. the real page is:
"http://testsite.localhost/dir/file.php" (e.g.
"http://testsite.localhost/home/shop.php")
- then Apache will "rewrite" both
"http://testsite.localhost/dir/file" (e.g.
http://testsite.localhost/home/shop)
and
"http://testsite.localhost/dir/file/" (e.g.
http://testsite.localhost/home/shop/)
to there as well.
(This seems to be the case while http://testsite.localhost/dir/file.php
exists,
when it doesn't - e.g. when testing - Apache rightly "throws" 404.)


I do not want that "automatic-find-file-'ish" feature!.. I have no idea why
it does it.
Besides resulting in some wrong pathes in some variables
(at least for http://testsite.localhost/dir/file/) I would much much prefer
a 404 page.

Any ideas of what might be wrong?


mvh
Thomas Schulz

 >> Stay informed about: Apache retrieves wrong documents instead of "throwing" 404 
Back to top
Login to vote
rauh

External


Since: Jul 14, 2003
Posts: 2



(Msg. 2) Posted: Mon Jul 14, 2003 11:45 am
Post subject: Re: Apache retrieves wrong documents instead of "throwing" 404 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Am Sun, 13 Jul 2003 20:51:45 +0200 hat dk_sz geschrieben:

 > Testet on localhost (Win2K+ Apache) server.
 >
 > If e.g. the real page is:
 > "http://testsite.localhost/dir/file.php" (e.g.
 > "http://testsite.localhost/home/shop.php")
 > - then Apache will "rewrite" both
 > "http://testsite.localhost/dir/file" (e.g.
 > <a style='text-decoration: underline;' href="http://testsite.localhost/home/shop" target="_blank">http://testsite.localhost/home/shop</a>)
 > and
 > "http://testsite.localhost/dir/file/" (e.g.
 > <a style='text-decoration: underline;' href="http://testsite.localhost/home/shop/" target="_blank">http://testsite.localhost/home/shop/</a>)
 > to there as well.
<font color=purple> > (This seems to be the case while <a style='text-decoration: underline;' href="http://testsite.localhost/dir/file.php</font" target="_blank">http://testsite.localhost/dir/file.php</font</a>>
 > exists,
 > when it doesn't - e.g. when testing - Apache rightly "throws" 404.)
 >
 >
 > I do not want that "automatic-find-file-'ish" feature!.. I have no idea
 > why
 > it does it.
 > Besides resulting in some wrong pathes in some variables
 > (at least for <a style='text-decoration: underline;' href="http://testsite.localhost/dir/file/" target="_blank">http://testsite.localhost/dir/file/</a>) I would much much
 > prefer
 > a 404 page.
 >
 > Any ideas of what might be wrong?
I'v had the same problem when I wanted to use mod_rewrite because Apache
already rewrote the request and my RegEx never matches. Today morning, when
I read your post I looked at the manual and first I found the 'mod_speling'
and tried to switch It off:
<IfModule mod_speling.c>
CheckSpelling Off
</IfModule>
But it dosn't work because the module wasn't load, so I searched again and
found the 'mod_negotiation' and the Option to switch off is named
MultiViews. So you have to type in your .htaccess:
//
Options -MultiViews
//
This solved my Problem. Sorry I'm too lazy too give you URI's about the
issue but I only read the apache (1.3.27) Manual on my hard disk.

mfg Andre (germany)<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache retrieves wrong documents instead of "throwing" 404 
Back to top
Login to vote
dk_sz

External


Since: Feb 14, 2004
Posts: 23



(Msg. 3) Posted: Mon Jul 14, 2003 10:00 pm
Post subject: Re: Apache retrieves wrong documents instead of "throwing" 404 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I'v had the same problem when I wanted to use mod_rewrite because Apache
 > already rewrote the request and my RegEx never matches. Today morning,
when

Exactly my problem too!


 > I read your post I looked at the manual and first I found the
'mod_speling'
 > and tried to switch It off:
 > <IfModule mod_speling.c>
 > CheckSpelling Off
 > </IfModule>

I also looked into this (but that did not help).


 > found the 'mod_negotiation' and the Option to switch off is named
 > MultiViews. So you have to type in your .htaccess:
 > Options -MultiViews

I bow in the dust. Thank you so much (it works)!


 > This solved my Problem. Sorry I'm too lazy too give you URI's about the
 > issue but I only read the apache (1.3.27) Manual on my hard disk.

I will find it. Thanks again.


best regards
Thomas Schulz (Denmark Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache retrieves wrong documents instead of "throwing" 404 
Back to top
Login to vote
dk_sz

External


Since: Feb 14, 2004
Posts: 23



(Msg. 4) Posted: Mon Jul 14, 2003 10:31 pm
Post subject: Re: Apache retrieves wrong documents instead of "throwing" 404 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ARGH

Now Apache can not generate 404 messages..

Using: Options -MultiViews
* can still access existing files/pathes
* rewrite works
but
* requesting (clearly) nonexisting pathes (where Apache should throe 404)
yields error 500...


best regards
Thomas
 >> Stay informed about: Apache retrieves wrong documents instead of "throwing" 404 
Back to top
Login to vote
dk_sz

External


Since: Feb 14, 2004
Posts: 23



(Msg. 5) Posted: Tue Jul 15, 2003 1:35 am
Post subject: Re: Apache retrieves wrong documents instead of "throwing" 404 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > yields error 500...

I can not really say what's changed.. But everything is now working again...
This will become really silly if I in a couple of hours post that it (again)
doesn't work Smile

best regards
Thomas<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache retrieves wrong documents instead of "throwing" 404 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]