|
Home > Archive > IIS Server > December 2005 > Change the default web directory
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Change the default web directory
|
|
| Mr Newbie 2005-12-23, 5:55 pm |
| Hi Folks,
I have created a web site directory under the wwwroot directory called TON,
this works OK so I can access my site using
http://MyServer/TON/index.aspx
OK, now I want to access this site as the default like this.
http://MyServer/
How do I go about altering the config so by default it points to my
subdirectory ?
--
Best Regards
The Inimitable Mr Newbie º¿º
| |
| Jeff Cochran 2005-12-23, 5:55 pm |
| On Fri, 23 Dec 2005 19:37:54 -0000, "Mr Newbie" <here@now.com> wrote:
>Hi Folks,
>
>I have created a web site directory under the wwwroot directory called TON,
>this works OK so I can access my site using
>
>http://MyServer/TON/index.aspx
>
>OK, now I want to access this site as the default like this.
>
>http://MyServer/
>
>How do I go about altering the config so by default it points to my
>subdirectory ?
In the IIS concole, set the path to the directory to be wherever you
wish.
Jeff
| |
| Kristofer Gafvert 2005-12-24, 2:49 am |
| Hello,
Open IIS Manager, right click the website and click Properties. On the
"Home Directory" tab, change the "Local Path".
You may also need to change the "Default Document" list, and add
index.aspx. You can do that from the "Documents" tab.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Mr Newbie wrote:
>Hi Folks,
>
>I have created a web site directory under the wwwroot directory called
>TON, this works OK so I can access my site using
>
>http://MyServer/TON/index.aspx
>
>OK, now I want to access this site as the default like this.
>
>http://MyServer/
>
>How do I go about altering the config so by default it points to my
>subdirectory ?
| |
| Mr Newbie 2005-12-24, 5:56 pm |
| Thanks but I dont think this is the answer I was really looking for.
I know I can change the directory that a web site points to, but I cant seem
to change the mapping for the root.
in other words, the unqualified mapping of
http://MyDomain/
to a specified directory on that server.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:xn0ebd6175qp2o6000@news.microsoft.com...[vbcol=seagreen]
> Hello,
>
> Open IIS Manager, right click the website and click Properties. On the
> "Home Directory" tab, change the "Local Path".
>
> You may also need to change the "Default Document" list, and add
> index.aspx. You can do that from the "Documents" tab.
>
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> Mr Newbie wrote:
>
| |
| Kristofer Gafvert 2005-12-24, 5:56 pm |
| I don't understand.
What do you mean by "mapping for the root"?
Do you want that when someone types http://mydomain/ they are supposed to
be redirected to http://mydomain/path/file.aspx ?
If so, you need to setup a redirect (same tab as already explained).
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Mr Newbie wrote:
>Thanks but I dont think this is the answer I was really looking for.
>
>I know I can change the directory that a web site points to, but I cant
>seem to change the mapping for the root.
>
>in other words, the unqualified mapping of
>
>http://MyDomain/
>
>to a specified directory on that server.
| |
| David Wang [Msft] 2005-12-26, 3:14 am |
| You are describing Server-Side Redirection.
http://blogs.msdn.com/david.wang/ar...IS_Summary.aspx
Though realize that this means from client side, URL looks like
http://MyDomain while URL looks like http://MyDomain/TON/ on the server - so
Server Variables on the server obviously reflect the latter while client
manipulates URLs of the former -- you need to be aware of this and reconcile
any difference if you happen to do such remapping.
In other words, it's usually best to simply change the directory a website
points to because more things work as you think... and some of the changes
are "by-design" that you simply have to deal with.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Mr Newbie" <here@now.com> wrote in message
news:O7FRf4JCGHA.2320@TK2MSFTNGP11.phx.gbl...
> Thanks but I dont think this is the answer I was really looking for.
>
> I know I can change the directory that a web site points to, but I cant
> seem to change the mapping for the root.
>
> in other words, the unqualified mapping of
>
> http://MyDomain/
>
> to a specified directory on that server.
>
> --
> Best Regards
>
> The Inimitable Mr Newbie º¿º
> "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
> news:xn0ebd6175qp2o6000@news.microsoft.com...
>
>
|
|
|
|
|