Hi, I am wondering if its possible to do the following: I have a website
that I created some time ago that was set up to be the root of a site - ex:
http://myWebSite.com. The problem with it is that in order to develop with
it, I have to put the entire website files in my inetpub\wwwroot folder. I
don't like cluttering up this folder. I would like to be able to put all
these files in a virtual directory or something, but the problem is, my site
needs to be able to pull up from the root of the site, not one folder below
as how I'm used to using virtual directories ex:
http://myWebSite.com/myVirtualDir.

I believe there is something that can be done to use host headers, but I
don't want to have to put my dev site into DNS; I would have to call my
network people and all that stuff that I don't want to do.

What are the options I have available?

thank you very much

Re: Using a virtual directory as the root of a website by Kristofer

Kristofer
Mon Apr 26 09:48:37 CDT 2004

My understanding of your question is that you have the development files
located somewhere else on the harddisk, and not in the wwwroot folder. But
you do not want to use a Virtual Folder, because the base must be / and not
/VirtualDir.

If this was correct, i think that the easiest thing to do is to move the
webroot. In IIS Manager, right click the WebSite, and click Properties.
Click the "Home Directory" tab, and change "Local Path" to the correct
folder on your harddrive.

--
Regards,
Kristofer Gafvert


"TS" <manofsteele@311.com> wrote in message
news:uozXfy5KEHA.1392@TK2MSFTNGP09.phx.gbl...
> Hi, I am wondering if its possible to do the following: I have a website
> that I created some time ago that was set up to be the root of a site -
ex:
> http://myWebSite.com. The problem with it is that in order to develop with
> it, I have to put the entire website files in my inetpub\wwwroot folder. I
> don't like cluttering up this folder. I would like to be able to put all
> these files in a virtual directory or something, but the problem is, my
site
> needs to be able to pull up from the root of the site, not one folder
below
> as how I'm used to using virtual directories ex:
> http://myWebSite.com/myVirtualDir.
>
> I believe there is something that can be done to use host headers, but I
> don't want to have to put my dev site into DNS; I would have to call my
> network people and all that stuff that I don't want to do.
>
> What are the options I have available?
>
> thank you very much
>
>



Re: Using a virtual directory as the root of a website by TS

TS
Mon Apr 26 10:45:21 CDT 2004

thanks for your comment.

>>My understanding of your question is that you have the development files
>>located somewhere else on the harddisk, and not in the wwwroot folder. But
>>you do not want to use a Virtual Folder, because the base must be / and
not
>>/VirtualDir.
My dev files are located in wwwroot, and I want them removed from there (I
can't develop in a virtual directory then post to the root of the website,
because it would mess up image paths, etc.)

>>If this was correct, i think that the easiest thing to do is to move the
>>webroot. In IIS Manager, right click the WebSite, and click Properties.
>>Click the "Home Directory" tab, and change "Local Path" to the correct
>>folder on your harddrive.
Will this mess up any current virtual directories I have?

Any other suggestions anyone?

"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:ubLBP25KEHA.3684@TK2MSFTNGP12.phx.gbl...
> My understanding of your question is that you have the development files
> located somewhere else on the harddisk, and not in the wwwroot folder. But
> you do not want to use a Virtual Folder, because the base must be / and
not
> /VirtualDir.
>
> If this was correct, i think that the easiest thing to do is to move the
> webroot. In IIS Manager, right click the WebSite, and click Properties.
> Click the "Home Directory" tab, and change "Local Path" to the correct
> folder on your harddrive.
>
> --
> Regards,
> Kristofer Gafvert
>
>
> "TS" <manofsteele@311.com> wrote in message
> news:uozXfy5KEHA.1392@TK2MSFTNGP09.phx.gbl...
> > Hi, I am wondering if its possible to do the following: I have a website
> > that I created some time ago that was set up to be the root of a site -
> ex:
> > http://myWebSite.com. The problem with it is that in order to develop
with
> > it, I have to put the entire website files in my inetpub\wwwroot folder.
I
> > don't like cluttering up this folder. I would like to be able to put all
> > these files in a virtual directory or something, but the problem is, my
> site
> > needs to be able to pull up from the root of the site, not one folder
> below
> > as how I'm used to using virtual directories ex:
> > http://myWebSite.com/myVirtualDir.
> >
> > I believe there is something that can be done to use host headers, but I
> > don't want to have to put my dev site into DNS; I would have to call my
> > network people and all that stuff that I don't want to do.
> >
> > What are the options I have available?
> >
> > thank you very much
> >
> >
>
>



Re: Using a virtual directory as the root of a website by Kristofer

Kristofer
Mon Apr 26 13:14:05 CDT 2004

You say that you cannot develop in a virtual directory, because it will mess
up the links. My recommendation to you is to use relative paths (use two
dots to move up a folder). What if you one day will have this website
running in a virtual folder (maybe because you are migrating to a newer
website, and needs to run it temporarily)?

And no, it should not change any virtual folders. They are virtual, and not
physically located in the webroot, and should therefore not be affected by
this.
--
Regards,
Kristofer Gafvert - IIS MVP

http://www.ilopia.com - When you need help!


"TS" <manofsteele@311.com> wrote in message
news:uV$ZKY6KEHA.3684@TK2MSFTNGP12.phx.gbl...
> thanks for your comment.
>
> >>My understanding of your question is that you have the development files
> >>located somewhere else on the harddisk, and not in the wwwroot folder.
But
> >>you do not want to use a Virtual Folder, because the base must be / and
> not
> >>/VirtualDir.
> My dev files are located in wwwroot, and I want them removed from there (I
> can't develop in a virtual directory then post to the root of the website,
> because it would mess up image paths, etc.)
>
> >>If this was correct, i think that the easiest thing to do is to move the
> >>webroot. In IIS Manager, right click the WebSite, and click Properties.
> >>Click the "Home Directory" tab, and change "Local Path" to the correct
> >>folder on your harddrive.
> Will this mess up any current virtual directories I have?
>
> Any other suggestions anyone?
>
> "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
> news:ubLBP25KEHA.3684@TK2MSFTNGP12.phx.gbl...
> > My understanding of your question is that you have the development files
> > located somewhere else on the harddisk, and not in the wwwroot folder.
But
> > you do not want to use a Virtual Folder, because the base must be / and
> not
> > /VirtualDir.
> >
> > If this was correct, i think that the easiest thing to do is to move the
> > webroot. In IIS Manager, right click the WebSite, and click Properties.
> > Click the "Home Directory" tab, and change "Local Path" to the correct
> > folder on your harddrive.
> >
> > --
> > Regards,
> > Kristofer Gafvert
> >
> >
> > "TS" <manofsteele@311.com> wrote in message
> > news:uozXfy5KEHA.1392@TK2MSFTNGP09.phx.gbl...
> > > Hi, I am wondering if its possible to do the following: I have a
website
> > > that I created some time ago that was set up to be the root of a
site -
> > ex:
> > > http://myWebSite.com. The problem with it is that in order to develop
> with
> > > it, I have to put the entire website files in my inetpub\wwwroot
folder.
> I
> > > don't like cluttering up this folder. I would like to be able to put
all
> > > these files in a virtual directory or something, but the problem is,
my
> > site
> > > needs to be able to pull up from the root of the site, not one folder
> > below
> > > as how I'm used to using virtual directories ex:
> > > http://myWebSite.com/myVirtualDir.
> > >
> > > I believe there is something that can be done to use host headers, but
I
> > > don't want to have to put my dev site into DNS; I would have to call
my
> > > network people and all that stuff that I don't want to do.
> > >
> > > What are the options I have available?
> > >
> > > thank you very much
> > >
> > >
> >
> >
>
>



Re: Using a virtual directory as the root of a website by v-wzhang

v-wzhang
Tue Apr 27 04:00:41 CDT 2004

Hello,

Since it's a development box, why not create a new site for this web
application? e.g http://myWebSite.com:8080/
You can map the new site to any physical directories and place the
files into it.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security


Re: Using a virtual directory as the root of a website by Kristofer

Kristofer
Tue Apr 27 04:15:52 CDT 2004

Note however that you cannot create new websites on client OSes, and that
you need a server for this.

--
Regards,
Kristofer Gafvert - IIS MVP
http://www.ilopia.com - When you need help!


""WenJun Zhang[msft]"" <v-wzhang@online.microsoft.com> wrote in message
news:e3%23QjYDLEHA.3396@cpmsftngxa10.phx.gbl...
> Hello,
>
> Since it's a development box, why not create a new site for this web
> application? e.g http://myWebSite.com:8080/
> You can map the new site to any physical directories and place the
> files into it.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Support
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Get Secure! - www.microsoft.com/security
>



Re: Using a virtual directory as the root of a website by TS

TS
Tue Apr 27 09:19:38 CDT 2004

Well I do relative paths now, but I don't want to have to update all the
links in this older app.

"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:um6oDp7KEHA.3492@TK2MSFTNGP09.phx.gbl...
> You say that you cannot develop in a virtual directory, because it will
mess
> up the links. My recommendation to you is to use relative paths (use two
> dots to move up a folder). What if you one day will have this website
> running in a virtual folder (maybe because you are migrating to a newer
> website, and needs to run it temporarily)?
>
> And no, it should not change any virtual folders. They are virtual, and
not
> physically located in the webroot, and should therefore not be affected by
> this.
> --
> Regards,
> Kristofer Gafvert - IIS MVP
>
> http://www.ilopia.com - When you need help!
>
>
> "TS" <manofsteele@311.com> wrote in message
> news:uV$ZKY6KEHA.3684@TK2MSFTNGP12.phx.gbl...
> > thanks for your comment.
> >
> > >>My understanding of your question is that you have the development
files
> > >>located somewhere else on the harddisk, and not in the wwwroot folder.
> But
> > >>you do not want to use a Virtual Folder, because the base must be /
and
> > not
> > >>/VirtualDir.
> > My dev files are located in wwwroot, and I want them removed from there
(I
> > can't develop in a virtual directory then post to the root of the
website,
> > because it would mess up image paths, etc.)
> >
> > >>If this was correct, i think that the easiest thing to do is to move
the
> > >>webroot. In IIS Manager, right click the WebSite, and click
Properties.
> > >>Click the "Home Directory" tab, and change "Local Path" to the correct
> > >>folder on your harddrive.
> > Will this mess up any current virtual directories I have?
> >
> > Any other suggestions anyone?
> >
> > "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
> > news:ubLBP25KEHA.3684@TK2MSFTNGP12.phx.gbl...
> > > My understanding of your question is that you have the development
files
> > > located somewhere else on the harddisk, and not in the wwwroot folder.
> But
> > > you do not want to use a Virtual Folder, because the base must be /
and
> > not
> > > /VirtualDir.
> > >
> > > If this was correct, i think that the easiest thing to do is to move
the
> > > webroot. In IIS Manager, right click the WebSite, and click
Properties.
> > > Click the "Home Directory" tab, and change "Local Path" to the correct
> > > folder on your harddrive.
> > >
> > > --
> > > Regards,
> > > Kristofer Gafvert
> > >
> > >
> > > "TS" <manofsteele@311.com> wrote in message
> > > news:uozXfy5KEHA.1392@TK2MSFTNGP09.phx.gbl...
> > > > Hi, I am wondering if its possible to do the following: I have a
> website
> > > > that I created some time ago that was set up to be the root of a
> site -
> > > ex:
> > > > http://myWebSite.com. The problem with it is that in order to
develop
> > with
> > > > it, I have to put the entire website files in my inetpub\wwwroot
> folder.
> > I
> > > > don't like cluttering up this folder. I would like to be able to put
> all
> > > > these files in a virtual directory or something, but the problem is,
> my
> > > site
> > > > needs to be able to pull up from the root of the site, not one
folder
> > > below
> > > > as how I'm used to using virtual directories ex:
> > > > http://myWebSite.com/myVirtualDir.
> > > >
> > > > I believe there is something that can be done to use host headers,
but
> I
> > > > don't want to have to put my dev site into DNS; I would have to call
> my
> > > > network people and all that stuff that I don't want to do.
> > > >
> > > > What are the options I have available?
> > > >
> > > > thank you very much
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: Using a virtual directory as the root of a website by TS

TS
Tue Apr 27 09:21:14 CDT 2004

I will be using one of these solutions

Thanks all!

"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:OuGx%23gDLEHA.1388@TK2MSFTNGP09.phx.gbl...
> Note however that you cannot create new websites on client OSes, and that
> you need a server for this.
>
> --
> Regards,
> Kristofer Gafvert - IIS MVP
> http://www.ilopia.com - When you need help!
>
>
> ""WenJun Zhang[msft]"" <v-wzhang@online.microsoft.com> wrote in message
> news:e3%23QjYDLEHA.3396@cpmsftngxa10.phx.gbl...
> > Hello,
> >
> > Since it's a development box, why not create a new site for this web
> > application? e.g http://myWebSite.com:8080/
> > You can map the new site to any physical directories and place the
> > files into it.
> >
> > Best regards,
> >
> > WenJun Zhang
> > Microsoft Online Support
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > Get Secure! - www.microsoft.com/security
> >
>
>