Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Proxy / Absolute Request URI

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache/tomcat/webapps: Invalid command 'WebAppDep..  
Author Message
user3003

External


Since: Oct 15, 2004
Posts: 10



(Msg. 1) Posted: Fri Oct 15, 2004 4:48 am
Post subject: Proxy / Absolute Request URI
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm running apache on my system. I have noticed the following request
from the log files and I'm surprised that apache responds to it.

GET http://www.yahoo.com/ HTTP/1.1
Host: www.yahoo.com
User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 9Cool

This is because of the absolute URI. I looked in the http rfc and in
there it says that such a request URI is only allowed when connection
to a proxy.

So according to the rfc apache should respons with an error code.
Maybe something like "Not allowed" or "Not implemented".

Why, however, does it serve the client the following response? What
you see here is the index.html page of the site. So it basically
servers the DocumentIndex.

HTTP/1.1 200 OK
Date: Fri, 15 Oct 2004 08:36:40 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_jk/1.2.6 PHP/4.1.2
Last-Modified: Thu, 30 Sep 2004 15:09:40 GMT
ETag: "814015-10-415c21b4"
Accept-Ranges: bytes
Content-Length: 16
Content-Type: text/html; charset=iso-8859-1

comming soon...

 >> Stay informed about: Proxy / Absolute Request URI 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Oct 15, 2004 11:56 am
Post subject: Re: Proxy / Absolute Request URI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-10-15, Fritz Bayer <fritz-bayer.DeleteThis@web.de> wrote:
 > So according to the rfc apache should respons with an error code.

Not really, if your apache has mod_proxy enabled, BUT you haven't
configured it in the httpd.conf, most of the time you just receive
your standard home page. Try it for yourself.

Davide

--
I once heard Bill Gates say, "WHAT?!?! Netscape caused an invalid page
fault!?! Only Microsoft programs have the code to do that!"<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Proxy / Absolute Request URI 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Sat Oct 16, 2004 1:10 am
Post subject: Re: Proxy / Absolute Request URI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> schreef in bericht
news:slrncmv457.13m.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-10-15, Fritz Bayer <fritz-bayer.DeleteThis@web.de> wrote:
  > > So according to the rfc apache should respons with an error code.
 > Not really, if your apache has mod_proxy enabled, BUT you haven't
 > configured it in the httpd.conf, most of the time you just receive
 > your standard home page. Try it for yourself.
Even without mod_proxy loaded there is a way to 200 where 400 was expected.
By example a RewriteRule by mod_rewrite or RewriteMatch by mod_alias on no
(^/?$) file will ignore protocol, server and port, thus performing its
planned redirect on say <a style='text-decoration: underline;' href="http://www.microsoft.com/" target="_blank">http://www.microsoft.com/</a> returning a redirect
message with a funny Wink footer:
'Apache/2.0.51 (Debian GNU/Linux) Server at <a style='text-decoration: underline;' href="http://www.microsoft.com" target="_blank">www.microsoft.com</a> Port 80',
before opening a default page telling Apache has been installed
successfully.

Some distributions of Apache2 have a directive of this kind enabled by
default. As soon as an /index.html is in place mod_dir will step in and
prevent activation of that Rule* .

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Proxy / Absolute Request URI 
Back to top
Login to vote
user3003

External


Since: Oct 15, 2004
Posts: 10



(Msg. 4) Posted: Fri Oct 22, 2004 2:01 am
Post subject: Re: Proxy / Absolute Request URI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message news:<slrncmv457.13m.davideyeahsure.RemoveThis@fogg.onlyforfun.net>...
 > On 2004-10-15, Fritz Bayer <fritz-bayer.RemoveThis@web.de> wrote:
  > > So according to the rfc apache should respons with an error code.
 >
 > Not really, if your apache has mod_proxy enabled, BUT you haven't
 > configured it in the httpd.conf, most of the time you just receive
 > your standard home page. Try it for yourself.
 >
 > Davide

But mod_proxy is disabled, so it can't be for that reason.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Proxy / Absolute Request URI 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Proxy && Absolute URIs - Is it possible to interpret URIs as the come from the 'ProxyPass'ed server? The application in question creates absolute URIs of it's content (all of which are dynamically generated and currently don't offer any configuration.)

Logging proxy request incoming to Apache - Hi all Apache users, I have setup Apache to act as a proxy between two hosts. Is it possible to log all the data that is coming to Apache, so that I can monitor that data passing between the 2 hosts ? Thanks a lot Francesco

VirtualHosts and Absolute addressing in HTML - Hi, I'm up to my knees in crocodiles on this, and rapidly forgetting that my original intention was to drain the swamp. I'm using Apache 1.3.27 (installed using PHPDev 4) to maintain a number of Web sites. I use my local PC for development only (not as...

Please help with determining absolute paths using RewriteC.. - Hi, all! I am tearing my hair out here... I want to rewrite some URLs based on the absolute path and whether the resulting thing being looked for is actually a real file or directory or not. The Apache mod_rewrite documentation is pretty good and so is....

Apache to serve files given by absolute filename - Hello Brief description: I want Apache not to prepend the server name to file names that are activated by clicking on the html anchor in a document. Detailed description: I have a document that contains anchors with HREF attribute pointing to a file...
   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 ]