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

IIS Directory Mapping Problem

 
   Web Hosting and Web Master Forums (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: 2901



(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.TakeThisOut@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 RemoveThis @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 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
Display posts from previous:   
Related Topics:
IIS Account Mapping with Certification on SmartCard withou.. - Hi, I have the following problem: I am using the GemSafeLibraries CardReader and SmartCard. On an IIS, a software (based on the IE) is running. It is possible to use the Software with different Accounts. I configure the IIS with client authentification,....

Password Protected Directory Problem - Hi, I have a IIS 5 webserver with a few websites on it. On one of the websites there is a password protected directory - uses basic authentication with no anomous access and no integrated windows authentication. Access to the directory works fine for....

Wildcard Mapping bug in XP? - Hi, Not sure whether this is a known problem, but I stumbled upon a problem with wildcard mappings in IIS (on Windows XP) If you add a wildcard mapping to a Virtual Directory that has a period (.) in the name, the mapping seems to prevent IIS from..

Network mapping - Hi Folks, i need to map an IIS Virtual Directory on a mapped network drive. the matter is i can map it from the Internet Services Manager but if i specify the mapped drive (i.e. Z:\) i cannot access it by IE (and the IIS Manager shows the error icon) and...

Site mapping - Hi all, maybe this is stupid question, but ... That's the situation: I have a Win2K domain controller, which acts as web-server also. This is the only server, exposed to internet. In it there is a second NIC, connected to the internal network. On one of...
   Web Hosting and Web Master Forums (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 ]