You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jimmy Lantz <ji...@lusidor.com> on 2002/07/02 23:50:26 UTC
Tracing incoming requests
Hi,
I have a name-based vhost setup,
and I find that the requests that I make from a HTTP Client class does'nt
get directed to the right vhost, it goes to the default.
But with IE it gets to the right place.
I'm using HTTP 1.1, and I check the logs on the default vhost , it give the
right hostname corresponding to the right host.
But still it's not being direct there.
What can I do to trace/check the errors on incomming requsts, to find out
where the problems lies.
/ Jimmy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Tracing incoming requests
Posted by Jimmy Lantz <ji...@lusidor.com>.
The Host header solved this error,
TY!
/ Jim
At 08:56 2002-07-03 -0400, you wrote:
>On Tue, 2002-07-02 at 17:50, Jimmy Lantz wrote:
> > Hi,
> > I have a name-based vhost setup,
> > and I find that the requests that I make from a HTTP Client class does'nt
> > get directed to the right vhost, it goes to the default.
> > But with IE it gets to the right place.
> > I'm using HTTP 1.1, and I check the logs on the default vhost , it give
> the
> > right hostname corresponding to the right host.
> > But still it's not being direct there.
> > What can I do to trace/check the errors on incomming requsts, to find out
> > where the problems lies.
> >
> > / Jimmy
> >
>Hi,
>
> Not sure what your HTTP Client class is. But what you describe
> would normally be due to not setting the 'Host' header in the request.
>
> You could try a tcpdump of the connection to see what the class
> is actually passing in the headers and request, or, if you have
> the source, see if the 'Host' header is being set to the proper value.
>
>HTH
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Tracing incoming requests
Posted by Lee Fellows <lf...@4lane.com>.
On Tue, 2002-07-02 at 17:50, Jimmy Lantz wrote:
> Hi,
> I have a name-based vhost setup,
> and I find that the requests that I make from a HTTP Client class does'nt
> get directed to the right vhost, it goes to the default.
> But with IE it gets to the right place.
> I'm using HTTP 1.1, and I check the logs on the default vhost , it give the
> right hostname corresponding to the right host.
> But still it's not being direct there.
> What can I do to trace/check the errors on incomming requsts, to find out
> where the problems lies.
>
> / Jimmy
>
Hi,
Not sure what your HTTP Client class is. But what you describe
would normally be due to not setting the 'Host' header in the request.
You could try a tcpdump of the connection to see what the class
is actually passing in the headers and request, or, if you have
the source, see if the 'Host' header is being set to the proper value.
HTH
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org