new web site wizard does not create a working web site
new web site wizard does not create a working web site
am 21.07.2007 05:41:51 von StephenRichter
using IIS on W2K3, I create a test website for use on my local network
using the "new website" wizard. ( In IISMgr I right click "web sites",
new, web site... )
I follow the steps of the wizard, assign ip addr, web site name, home
directory, allow scripts to run. When I navigate to a simple .aspx
page from the browser of a client system I get a "404 0 3" error in
the IIS error log. Path not found.
To correct this problem, in IISMGR, I right click the web site and new
up a virtual directory to my home directory. Now I can browse
successfully to the page.
question is, is the virtual directory actually necessary? If so, why
does the wizard not prompt me to create one? And what is the point of
specifying a home directory if it is not going to be used directly?
thanks,
-Steve
Re: new web site wizard does not create a working web site
am 21.07.2007 06:54:39 von Kristofer Gafvert
The status code that is logged is 404 0 3. That means that the "The system
cannot find the path specified.". So really, the file is not available at
the path you think it is.
What is the home directory?
Where is the file located?
What do you use to browse the file?
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Steve Richter wrote:
>using IIS on W2K3, I create a test website for use on my local network
>using the "new website" wizard. ( In IISMgr I right click "web sites",
>new, web site... )
>
>I follow the steps of the wizard, assign ip addr, web site name, home
>directory, allow scripts to run. When I navigate to a simple .aspx
>page from the browser of a client system I get a "404 0 3" error in
>the IIS error log. Path not found.
>
>To correct this problem, in IISMGR, I right click the web site and new
>up a virtual directory to my home directory. Now I can browse
>successfully to the page.
>
>question is, is the virtual directory actually necessary? If so, why
>does the wizard not prompt me to create one? And what is the point of
>specifying a home directory if it is not going to be used directly?
>
>thanks,
>
>-Steve
Re: new web site wizard does not create a working web site
am 21.07.2007 06:55:44 von Ken Schaefer
Hi,
You should not need to create a virtual directory. Pages you place into the
home directory of the new site should be availeble at http://yourNewSiteName
Something else may be blocking the requests (e.g. URLScan)? check that you
don't have something like that blocking requests (e.g by using a plain HTML
or text file)
Cheers
Ken
"Steve Richter" wrote in message
news:1184989311.441074.138590@n60g2000hse.googlegroups.com.. .
> using IIS on W2K3, I create a test website for use on my local network
> using the "new website" wizard. ( In IISMgr I right click "web sites",
> new, web site... )
>
> I follow the steps of the wizard, assign ip addr, web site name, home
> directory, allow scripts to run. When I navigate to a simple .aspx
> page from the browser of a client system I get a "404 0 3" error in
> the IIS error log. Path not found.
>
> To correct this problem, in IISMGR, I right click the web site and new
> up a virtual directory to my home directory. Now I can browse
> successfully to the page.
>
> question is, is the virtual directory actually necessary? If so, why
> does the wizard not prompt me to create one? And what is the point of
> specifying a home directory if it is not going to be used directly?
>
> thanks,
>
> -Steve
>
Re: new web site wizard does not create a working web site
am 21.07.2007 08:20:38 von StephenRichter
On Jul 21, 12:54 am, "Kristofer Gafvert"
wrote:
> The status code that is logged is 404 0 3. That means that the "The system
> cannot find the path specified.". So really, the file is not available at
> the path you think it is.
>
> What is the home directory?
home directory tab:
a directory located on this computer
local path: c:\srichter
script source access checked. read checked.
application name: default application
starting point:
execute permissions: scripts only
application pool: defaultappPool
website tab:
web site identification
description: steve3
ip address: 10.10.10.6
virtual directory properties.
virtual directory tab:
a directory located on this computer
local path: c:\srichter
read checked
application name: stevev3
starting point: \
execute permissions: scripts only
application pool: DefaultAppPool
> Where is the file located?
c:/srichter/helloworld.aspx
> What do you use to browse the file?
the IE browser on my Vista PC.
//10.10.10.6/steve3/helloworld.aspx ----> page not found. 404 0 0
//10.10.10.6/steve3v/helloworld.aspx ----> works!
here is my error log:
2007-07-21 06:04:38 W3SVC683094631 10.10.10.6 GET /steve3/
helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cente r+PC
+5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 404 0 0
2007-07-21 06:04:46 W3SVC683094631 10.10.10.6 GET /stevev3/
helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cente r+PC
+5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 200 0 0
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
>
>
> Steve Richter wrote:
> >using IIS on W2K3, I create a test website for use on my local network
> >using the "new website" wizard. ( In IISMgr I right click "web sites",
> >new, web site... )
>
> >I follow the steps of the wizard, assign ip addr, web site name, home
> >directory, allow scripts to run. When I navigate to a simple .aspx
> >page from the browser of a client system I get a "404 0 3" error in
> >the IIS error log. Path not found.
>
> >To correct this problem, in IISMGR, I right click the web site and new
> >up a virtual directory to my home directory. Now I can browse
> >successfully to the page.
>
> >question is, is the virtual directory actually necessary? If so, why
> >does the wizard not prompt me to create one? And what is the point of
> >specifying a home directory if it is not going to be used directly?
>
> >thanks,
>
> >-Steve- Hide quoted text -
>
> - Show quoted text -
Re: new web site wizard does not create a working web site
am 21.07.2007 08:59:21 von Kristofer Gafvert
Hello,
You are using the wrong URL.
The path to the home directory is:
c:\srichter
The file is located in:
c:/srichter/helloworld.aspx
The URL you should be using to access this file is:
http://localhost/helloworld.aspx
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Steve Richter wrote:
>On Jul 21, 12:54 am, "Kristofer Gafvert"
>wrote:
>>The status code that is logged is 404 0 3. That means that the "The system
>>cannot find the path specified.". So really, the file is not available at
>>the path you think it is.
>>
>>What is the home directory?
>
>home directory tab:
> a directory located on this computer
> local path: c:\srichter
> script source access checked. read checked.
> application name: default application
> starting point:
> execute permissions: scripts only
> application pool: defaultappPool
>
>website tab:
>web site identification
> description: steve3
> ip address: 10.10.10.6
>
>virtual directory properties.
>virtual directory tab:
> a directory located on this computer
> local path: c:\srichter
> read checked
> application name: stevev3
> starting point: \
> execute permissions: scripts only
> application pool: DefaultAppPool
>
>>Where is the file located?
> c:/srichter/helloworld.aspx
>
>>What do you use to browse the file?
>the IE browser on my Vista PC.
> //10.10.10.6/steve3/helloworld.aspx ----> page not found. 404 0 0
> //10.10.10.6/steve3v/helloworld.aspx ----> works!
>
>here is my error log:
>
>2007-07-21 06:04:38 W3SVC683094631 10.10.10.6 GET steve3
>helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
>+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cent er+PC
>+5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 404 0 0
>
>2007-07-21 06:04:46 W3SVC683094631 10.10.10.6 GET stevev3
>helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
>+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cent er+PC
>+5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 200 0 0
>
>
>
>>
>>--
>>Regards,
>>Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>
>>
>>Steve Richter wrote:
>>>using IIS on W2K3, I create a test website for use on my local network
>>>using the "new website" wizard. ( In IISMgr I right click "web sites",
>>>new, web site... )
>>
>>>I follow the steps of the wizard, assign ip addr, web site name, home
>>>directory, allow scripts to run. When I navigate to a simple .aspx
>>>page from the browser of a client system I get a "404 0 3" error in
>>>the IIS error log. Path not found.
>>
>>>To correct this problem, in IISMGR, I right click the web site and new
>>>up a virtual directory to my home directory. Now I can browse
>>>successfully to the page.
>>
>>>question is, is the virtual directory actually necessary? If so, why
>>>does the wizard not prompt me to create one? And what is the point of
>>>specifying a home directory if it is not going to be used directly?
>>
>>>thanks,
>>
>>>-Steve- Hide quoted text -
>>
>>- Show quoted text -
Re: new web site wizard does not create a working web site
am 21.07.2007 09:43:04 von Kristofer Gafvert
That should be:
http://10.10.10.6/helloworld.aspx
localhost may be pointing to another website.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Kristofer Gafvert wrote:
>Hello,
>
>You are using the wrong URL.
>
>The path to the home directory is:
>c:\srichter
>
>The file is located in:
>c:/srichter/helloworld.aspx
>
>The URL you should be using to access this file is:
>
>http://localhost/helloworld.aspx
Re: new web site wizard does not create a working web site
am 21.07.2007 15:57:25 von nomailreplies
Why are you specifying the IP address ?
Do you have more than one IP address assigned to the box ?
Try leaving the IP address as "All Unassigned"...
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
======================================
"Steve Richter" wrote in message news:1184998838.094231.15680@22g2000hsm.googlegroups.com...
> On Jul 21, 12:54 am, "Kristofer Gafvert"
> wrote:
>> The status code that is logged is 404 0 3. That means that the "The system
>> cannot find the path specified.". So really, the file is not available at
>> the path you think it is.
>>
>> What is the home directory?
>
> home directory tab:
> a directory located on this computer
> local path: c:\srichter
> script source access checked. read checked.
> application name: default application
> starting point:
> execute permissions: scripts only
> application pool: defaultappPool
>
> website tab:
> web site identification
> description: steve3
> ip address: 10.10.10.6
>
> virtual directory properties.
> virtual directory tab:
> a directory located on this computer
> local path: c:\srichter
> read checked
> application name: stevev3
> starting point: \
> execute permissions: scripts only
> application pool: DefaultAppPool
>
>> Where is the file located?
> c:/srichter/helloworld.aspx
>
>> What do you use to browse the file?
> the IE browser on my Vista PC.
> //10.10.10.6/steve3/helloworld.aspx ----> page not found. 404 0 0
> //10.10.10.6/steve3v/helloworld.aspx ----> works!
>
> here is my error log:
>
> 2007-07-21 06:04:38 W3SVC683094631 10.10.10.6 GET /steve3/
> helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
> +7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cente r+PC
> +5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 404 0 0
>
> 2007-07-21 06:04:46 W3SVC683094631 10.10.10.6 GET /stevev3/
> helloworld.aspx - 80 - 10.10.10.30 Mozilla/4.0+(compatible;+MSIE
> +7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cente r+PC
> +5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+InfoPath.1) 200 0 0
>
>
>
>>
>> --
>> Regards,
>> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>
>>
>> Steve Richter wrote:
>> >using IIS on W2K3, I create a test website for use on my local network
>> >using the "new website" wizard. ( In IISMgr I right click "web sites",
>> >new, web site... )
>>
>> >I follow the steps of the wizard, assign ip addr, web site name, home
>> >directory, allow scripts to run. When I navigate to a simple .aspx
>> >page from the browser of a client system I get a "404 0 3" error in
>> >the IIS error log. Path not found.
>>
>> >To correct this problem, in IISMGR, I right click the web site and new
>> >up a virtual directory to my home directory. Now I can browse
>> >successfully to the page.
>>
>> >question is, is the virtual directory actually necessary? If so, why
>> >does the wizard not prompt me to create one? And what is the point of
>> >specifying a home directory if it is not going to be used directly?
>>
>> >thanks,
>>
>> >-Steve- Hide quoted text -
>>
>> - Show quoted text -
>
>
Re: new web site wizard does not create a working web site
am 21.07.2007 16:45:36 von StephenRichter
On Jul 21, 3:43 am, "Kristofer Gafvert"
wrote:
> That should be:
>
> http://10.10.10.6/helloworld.aspx
this works, but I dont understand why.
I have two PCs, one Vista ( 10.10.10.30 ), the other W2K3 server
(10.10.10.6 ).
when I browse from Vista ( 10.10.10.30 ) to http://10.10.10.6/helloworld.aspx,
how am I being directed to the correct website on the server?
On the server I create multiple websites. Each with a different
"website identification" description, same ip addr, different home
directory. I am assuming the "website identification
description" ( steve3 ) is used as a directory name in the URL:
http://10.10.10.6/steve3/helloworld.aspx ( which is making less and
less sense as I think about it )
if I have more than one website on the server, I need the virtual
directory to distinguish between the two?
thanks,
-Steve
Re: new web site wizard does not create a working web site
am 21.07.2007 17:18:22 von Kristofer Gafvert
Hi,
To have multiple websites on IIS, a unique combination of IP address, port
number and host header name is necessary.
My understanding of your setup is that you have given this particular
website the following:
IP adress: 10.10.10.6
Port number: 80
Host header name:
By default, the "Default website" (the website that is created when IIS is
installed) binds to all unassigned IP addresses. This means that your new
website will answer on 10.10.10.6, but the "Default website" will answer
to all other requests not on the 10.10.10.6 ip address (that's why i
changed the URL to 10.10.10.6 instead of localhost in my previous reply,
because if you used localhost you could be getting to another website).
The "website identification description" is meaningless here. It only
serves as a friendly name for the IIS administrator. It has no meaning how
IIS routes a request to a website, the only things that matters to this is
the IP address, port number and host header name.
I have an article that may give more information, but it only discusses
the host header part:
"Using Host Headers to host multiple websites on IIS 6.0"
http://www.gafvert.info/iis/article/iis_multiple_websites.ht m
Something's still not clear? Don't hesitate to ask and we will try to
explain even further.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Steve Richter wrote:
>On Jul 21, 3:43 am, "Kristofer Gafvert"
>wrote:
>>That should be:
>>
>>http://10.10.10.6/helloworld.aspx
>
>this works, but I dont understand why.
>
>I have two PCs, one Vista ( 10.10.10.30 ), the other W2K3 server
>(10.10.10.6 ).
>
>when I browse from Vista ( 10.10.10.30 ) to
>http://10.10.10.6/helloworld.aspx,
>how am I being directed to the correct website on the server?
>
>On the server I create multiple websites. Each with a different
>"website identification" description, same ip addr, different home
>directory. I am assuming the "website identification
>description" ( steve3 ) is used as a directory name in the url:
>http://10.10.10.6/steve3/helloworld.aspx ( which is making less and
>less sense as I think about it )
>
>if I have more than one website on the server, I need the virtual
>directory to distinguish between the two?
>
>thanks,
>
>-Steve
Re: new web site wizard does not create a working web site
am 21.07.2007 18:30:56 von StephenRichter
On Jul 21, 11:18 am, "Kristofer Gafvert"
wrote:
> Hi,
>
> To have multiple websites on IIS, a unique combination of IP address, port
> number and host header name is necessary.
>
> My understanding of your setup is that you have given this particular
> website the following:
> IP adress: 10.10.10.6
> Port number: 80
> Host header name:
>
> By default, the "Default website" (the website that is created when IIS is
> installed) binds to all unassigned IP addresses. This means that your new
> website will answer on 10.10.10.6, but the "Default website" will answer
> to all other requests not on the 10.10.10.6 ip address (that's why i
> changed the URL to 10.10.10.6 instead of localhost in my previous reply,
> because if you used localhost you could be getting to another website).
>
> The "website identification description" is meaningless here. It only
> serves as a friendly name for the IIS administrator. It has no meaning how
> IIS routes a request to a website, the only things that matters to this is
> the IP address, port number and host header name.
>
> I have an article that may give more information, but it only discusses
> the host header part:
>
> "Using Host Headers to host multiple websites on IIS 6.0"http://www.gafvert.info/iis/article/iis_multiple_website s.htm
>
great article. thank you.
Since the DNS server is running on my server ( 10.10.10.6 ), I should
be able to add the "A" record there, correct?
Running DNSMGR on my server the "A" record for the server is
"server1".
forward looking zones
homeoffice.autoxxxx.com
A record: server1 10.10.10.6
A record: vista1 10.10.10.30
from the Vista1 PC I can browse to my helloworld.aspx page:
http://server1.homeoffice.autoxxxx.com/helloworld.aspx
http://server1/helloworld.aspx
I create a new website namd "steve4". Just to understand the "host
header" concept I want to be able to browse to:
http://server1/steve4/helloworld.aspx
( or is it http://server1.steve4/helloworld.aspx ? )
I use the wizard to create a new website.
ip: 10.10.10.6
host header: steve4
home directory: c:\srichter ( contains the c:\srichter
\helloworld.aspx file )
my question is, where do I put the A record for "steve4"?
another question: after the wizard creates the steve4 website, I dont
see the "host header" specification in the "properties" panel. Is it
there? How do I change/remove the host header?
thanks,
-Steve
Re: new web site wizard does not create a working web site
am 21.07.2007 21:53:07 von Kristofer Gafvert
Hi,
The users must query your DNS server. They don't do this automatically
just because the DNS server is on the same server as the web server. So i
cannot tell if it will work by adding an "A" record in your DNS server,
but since server1.homeoffice.autoxxx.com works, it will probably work.
http://server1/steve4/helloworld.aspx
If you use this URL, you will send the host header name of "server1" to
IIS. "steve4" is a folder (or virtual directory) beneath the root folder
(home directory).
http://server1.steve4/helloworld.aspx
Could be correct, but you will need to add a top level domain name called
"steve4" (compare this to .com/.org/.net). Once you have done this in your
DNS server, you will need to set the host header name to be
"server1.steve4".
If you create a website and set the host header to be "steve4", you will
need to use the following in your browser to access this website (once you
have made sure that steve4 points to the webserver):
http://steve4/helloworld.aspx
Since you already have server1.homeoffice.autoxxx.com, why not create
steve4.homeoffice.autoxxx.com? If you create this in the DNS server, you
will need to specify the following host header in IIS:
steve4.homeoffice.autoxxx.com
So in short, the domain name you want to use to access the website should
match with the host header you specify for the website (technically that
is not necessary, but all browsers send a host header that equalls the
domain name).
To change a host header, in IIS Manager:
- Right click the website and click Properties.
- Click on the Advanced button on the "Web Site" tab.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Steve Richter wrote:
>On Jul 21, 11:18 am, "Kristofer Gafvert"
>wrote:
>>Hi,
>>
>>To have multiple websites on IIS, a unique combination of IP address, port
>>number and host header name is necessary.
>>
>>My understanding of your setup is that you have given this particular
>>website the following:
>>IP adress: 10.10.10.6
>>Port number: 80
>>Host header name:
>>
>>By default, the "Default website" (the website that is created when IIS is
>>installed) binds to all unassigned IP addresses. This means that your new
>>website will answer on 10.10.10.6, but the "Default website" will answer
>>to all other requests not on the 10.10.10.6 ip address (that's why i
>>changed the URL to 10.10.10.6 instead of localhost in my previous reply,
>>because if you used localhost you could be getting to another website).
>>
>>The "website identification description" is meaningless here. It only
>>serves as a friendly name for the IIS administrator. It has no meaning how
>>IIS routes a request to a website, the only things that matters to this is
>>the IP address, port number and host header name.
>>
>>I have an article that may give more information, but it only discusses
>>the host header part:
>>
>>"Using Host Headers to host multiple websites on IIS
>>6.0"http://www.gafvert.info/iis/article/iis_multiple_websi tes.htm
>>
>
>great article. thank you.
>
>Since the DNS server is running on my server ( 10.10.10.6 ), I should
>be able to add the "A" record there, correct?
>
>Running DNSMGR on my server the "A" record for the server is
>"server1".
> forward looking zones
> homeoffice.autoxxxx.com
> A record: server1 10.10.10.6
> A record: vista1 10.10.10.30
>
>from the Vista1 PC I can browse to my helloworld.aspx page:
> http://server1.homeoffice.autoxxxx.com/helloworld.aspx
> http://server1/helloworld.aspx
>
>I create a new website namd "steve4". Just to understand the "host
>header" concept I want to be able to browse to:
> http://server1/steve4/helloworld.aspx
>
>( or is it http://server1.steve4/helloworld.aspx ? )
>
>I use the wizard to create a new website.
> ip: 10.10.10.6
> host header: steve4
> home directory: c:\srichter ( contains the c:\srichter
>\helloworld.aspx file )
>
>my question is, where do I put the A record for "steve4"?
>
>another question: after the wizard creates the steve4 website, I dont
>see the "host header" specification in the "properties" panel. Is it
>there? How do I change/remove the host header?
>
>thanks,
>
>-Steve