Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS Directory Mapping Problem

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Can't start IIS 6.0 server  
Author Message
anonymous1170

External


Since: Feb 11, 2004
Posts: 4



(Msg. 1) Posted: Wed Feb 11, 2004 2:46 pm
Post subject: IIS Directory Mapping Problem
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: IIS Directory Mapping Problem 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 2) Posted: Thu Feb 12, 2004 2:42 am
Post subject: Re: IIS Directory Mapping Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 RemoveThis @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
:
:
:
:

 >> Stay informed about: IIS Directory Mapping Problem 
Back to top
Login to vote
anonymous1170

External


Since: Feb 11, 2004
Posts: 4



(Msg. 3) Posted: Thu Feb 12, 2004 2:42 am
Post subject: Re: IIS Directory Mapping Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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: <a style='text-decoration: underline;' href="http://www.myserver.com" target="_blank">www.myserver.com</a>

Thanks again Ken

Ed




"Ken Schaefer" <kenREMOVE RemoveThis @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 RemoveThis @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 <a style='text-decoration: underline;' href="http://www.mysite.com/SubDir/Anypage.aspx" target="_blank">http://www.mysite.com/SubDir/Anypage.aspx</a> displays the
 > : anypage.aspx without a problem
 > :
 > : <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> 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 <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> 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
 > :
 > :
 > :
 > :
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Directory Mapping Problem 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Thu Feb 12, 2004 2:42 am
Post subject: Re: IIS Directory Mapping Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You need to send this over Telnet:
GET /subdir/anypage.aspx HTTP/1.1\r\n
host: <a style='text-decoration: underline;' href="http://www.myserver.com" target="_blank">www.myserver.com</a>\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 DeleteThis @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: <a style='text-decoration: underline;' href="http://www.myserver.com" target="_blank">www.myserver.com</a>

Thanks again Ken

Ed




"Ken Schaefer" <kenREMOVE DeleteThis @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 DeleteThis @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 <a style='text-decoration: underline;' href="http://www.mysite.com/SubDir/Anypage.aspx" target="_blank">http://www.mysite.com/SubDir/Anypage.aspx</a> displays the
 > : anypage.aspx without a problem
 > :
 > : <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> 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 <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> 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
 > :
 > :
 > :
 > :
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Directory Mapping Problem 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS 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 ]