Hi, I am using IIS6 with mutiple websites. which are all working fine using
headers etc. The problem arises when telnetting into the server and
manually posting the HTTP GET Request. The server seems to ignore which
website you are connected to, even with the headers specified and defaults
to the default website path.

For example:

Browsing to http://www.mysite.com/SubDir/Anypage.aspx displays the
anypage.aspx without a problem

www.mysite.com is configured as a Website in IIS 6 with a home directory of
c:\inetpub\wwwroot\mysite\

subdir is a standard subdirectory located in
c:\inetpub\wwwroot\mysite\subdir

when telnetting in to www.mysite.com 80

with the get command:
GET /subdir/anypage.aspx
HTTP/1.1

the error from ther server is 'Could not find a part of the path
"c:\inetpub.\wwwroot\subdir\anypage.aspx"'

this is understandable as it is omitting the mysite directory in wwwroot.
Even when telneting with the headers supplied the same problem occurs.

I understand this is almost definatley a configuration problem at my
end..but have no idea what & I can not understand why the pages are being
served from a browser and not telnet!! Any help much appreciated

Re: IIS Directory Mapping Problem by Ken

Ken
Wed Feb 11 06:42:51 CST 2004

Hi,

Something is up with your server. If you do this:

GET /subdir/anypage.aspx HTTP/1.1

(the HTTP/1.1 bit should be on the same line as the actual method header)
then you should get back 400 Bad Request or similar (possibly with the text
"invalid hostname"), since the HTTP 1.1 spec requires that you specify a
host: header as well as the method (at the very least).

The fact you are getting back an error:

: the error from ther server is 'Could not find a part of the path
: "c:\inetpub.\wwwroot\subdir\anypage.aspx"'

is quite disturbing, as IIS shouldn't be revealing information about the
internal structure of your physical drives. Maybe someone from Microsoft can
comment?

Cheers
Ken

"Ed" <anonymous@anonymous.microsoft.com> wrote in message
news:uQ0F3SJ8DHA.3420@TK2MSFTNGP11.phx.gbl...
: Hi, I am using IIS6 with mutiple websites. which are all working fine
using
: headers etc. The problem arises when telnetting into the server and
: manually posting the HTTP GET Request. The server seems to ignore which
: website you are connected to, even with the headers specified and defaults
: to the default website path.
:
: For example:
:
: Browsing to http://www.mysite.com/SubDir/Anypage.aspx displays the
: anypage.aspx without a problem
:
: www.mysite.com is configured as a Website in IIS 6 with a home directory
of
: c:\inetpub\wwwroot\mysite\
:
: subdir is a standard subdirectory located in
: c:\inetpub\wwwroot\mysite\subdir
:
: when telnetting in to www.mysite.com 80
:
: with the get command:
: GET /subdir/anypage.aspx
: HTTP/1.1
:
: the error from ther server is 'Could not find a part of the path
: "c:\inetpub.\wwwroot\subdir\anypage.aspx"'
:
: this is understandable as it is omitting the mysite directory in wwwroot.
: Even when telneting with the headers supplied the same problem occurs.
:
: I understand this is almost definatley a configuration problem at my
: end..but have no idea what & I can not understand why the pages are being
: served from a browser and not telnet!! Any help much appreciated
:
:
:
:



Re: IIS Directory Mapping Problem by Ed

Ed
Wed Feb 11 06:48:38 CST 2004

Ken

I only get the indepth response when telnetting from the Server to Itself.
Otherwise, from an external server, or my desktop. I do get the 400 Bad
Request Invalid HostName.


Could you clarify for me how the HTTP request should be formed with a host:
header.

I have been trying with:
GET /subdir/anypage.aspx HTTP/1.1 host: www.myserver.com

Thanks again Ken

Ed




"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:%23reBQyJ8DHA.2044@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Something is up with your server. If you do this:
>
> GET /subdir/anypage.aspx HTTP/1.1
>
> (the HTTP/1.1 bit should be on the same line as the actual method header)
> then you should get back 400 Bad Request or similar (possibly with the
text
> "invalid hostname"), since the HTTP 1.1 spec requires that you specify a
> host: header as well as the method (at the very least).
>
> The fact you are getting back an error:
>
> : the error from ther server is 'Could not find a part of the path
> : "c:\inetpub.\wwwroot\subdir\anypage.aspx"'
>
> is quite disturbing, as IIS shouldn't be revealing information about the
> internal structure of your physical drives. Maybe someone from Microsoft
can
> comment?
>
> Cheers
> Ken
>
> "Ed" <anonymous@anonymous.microsoft.com> wrote in message
> news:uQ0F3SJ8DHA.3420@TK2MSFTNGP11.phx.gbl...
> : Hi, I am using IIS6 with mutiple websites. which are all working fine
> using
> : headers etc. The problem arises when telnetting into the server and
> : manually posting the HTTP GET Request. The server seems to ignore which
> : website you are connected to, even with the headers specified and
defaults
> : to the default website path.
> :
> : For example:
> :
> : Browsing to http://www.mysite.com/SubDir/Anypage.aspx displays the
> : anypage.aspx without a problem
> :
> : www.mysite.com is configured as a Website in IIS 6 with a home directory
> of
> : c:\inetpub\wwwroot\mysite\
> :
> : subdir is a standard subdirectory located in
> : c:\inetpub\wwwroot\mysite\subdir
> :
> : when telnetting in to www.mysite.com 80
> :
> : with the get command:
> : GET /subdir/anypage.aspx
> : HTTP/1.1
> :
> : the error from ther server is 'Could not find a part of the path
> : "c:\inetpub.\wwwroot\subdir\anypage.aspx"'
> :
> : this is understandable as it is omitting the mysite directory in
wwwroot.
> : Even when telneting with the headers supplied the same problem occurs.
> :
> : I understand this is almost definatley a configuration problem at my
> : end..but have no idea what & I can not understand why the pages are
being
> : served from a browser and not telnet!! Any help much appreciated
> :
> :
> :
> :
>
>



Re: IIS Directory Mapping Problem by David

David
Wed Feb 11 07:38:02 CST 2004

You need to send this over Telnet:
GET /subdir/anypage.aspx HTTP/1.1\r\n
host: www.myserver.com\r\n
\r\n

HTTP 1.1 requires a Host header, which should map the host header you
assigned to the website if you wish to access it. HTTP protocol is also
strict on where the white space and \r\n exist in a request/response, so be
absolutely precise about it.

The indepth response indicates that the response did not come from
IIS/HTTP.SYS but ASP.Net . This is not what you are describing externally,
so that remains odd to me.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ed" <anonymous@anonymous.microsoft.com> wrote in message
news:O$5dh1J8DHA.3880@tk2msftngp13.phx.gbl...
Ken

I only get the indepth response when telnetting from the Server to Itself.
Otherwise, from an external server, or my desktop. I do get the 400 Bad
Request Invalid HostName.


Could you clarify for me how the HTTP request should be formed with a host:
header.

I have been trying with:
GET /subdir/anypage.aspx HTTP/1.1 host: www.myserver.com

Thanks again Ken

Ed




"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:%23reBQyJ8DHA.2044@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Something is up with your server. If you do this:
>
> GET /subdir/anypage.aspx HTTP/1.1
>
> (the HTTP/1.1 bit should be on the same line as the actual method header)
> then you should get back 400 Bad Request or similar (possibly with the
text
> "invalid hostname"), since the HTTP 1.1 spec requires that you specify a
> host: header as well as the method (at the very least).
>
> The fact you are getting back an error:
>
> : the error from ther server is 'Could not find a part of the path
> : "c:\inetpub.\wwwroot\subdir\anypage.aspx"'
>
> is quite disturbing, as IIS shouldn't be revealing information about the
> internal structure of your physical drives. Maybe someone from Microsoft
can
> comment?
>
> Cheers
> Ken
>
> "Ed" <anonymous@anonymous.microsoft.com> wrote in message
> news:uQ0F3SJ8DHA.3420@TK2MSFTNGP11.phx.gbl...
> : Hi, I am using IIS6 with mutiple websites. which are all working fine
> using
> : headers etc. The problem arises when telnetting into the server and
> : manually posting the HTTP GET Request. The server seems to ignore which
> : website you are connected to, even with the headers specified and
defaults
> : to the default website path.
> :
> : For example:
> :
> : Browsing to http://www.mysite.com/SubDir/Anypage.aspx displays the
> : anypage.aspx without a problem
> :
> : www.mysite.com is configured as a Website in IIS 6 with a home directory
> of
> : c:\inetpub\wwwroot\mysite\
> :
> : subdir is a standard subdirectory located in
> : c:\inetpub\wwwroot\mysite\subdir
> :
> : when telnetting in to www.mysite.com 80
> :
> : with the get command:
> : GET /subdir/anypage.aspx
> : HTTP/1.1
> :
> : the error from ther server is 'Could not find a part of the path
> : "c:\inetpub.\wwwroot\subdir\anypage.aspx"'
> :
> : this is understandable as it is omitting the mysite directory in
wwwroot.
> : Even when telneting with the headers supplied the same problem occurs.
> :
> : I understand this is almost definatley a configuration problem at my
> : end..but have no idea what & I can not understand why the pages are
being
> : served from a browser and not telnet!! Any help much appreciated
> :
> :
> :
> :
>
>