thanks. Results from my following your advice are below. I think I may
have been asking the wrong question.
RESTATEMENT OF PROBLEM
----------------------
I webmaster 3 websites on a W2k3 Server/ASP.NET.
My developmnet environment is Win2k Pro/IIS5.1/VS.NET.
The problem is WinXPPro/IIS5.1 only allows 1 default website, thus all
websites have to be referenced with
http://localhost during development.
It becomes messy (IMHO) to publish a site where the user has to type
extra path information(i.e.
www.domain.com/appname/default.aspx as
opposed to
www.domain.com/default.aspx (without the default.aspx of
course).
In Dreamweaver, hierchical path names were handled with no fuss: just
publish localhost/appname/dir1/subdir1/html_root to
http://domain.com/html_root
QUESTIONS
---------
1) How do I accomplish this in VS.NET? What configuration do I need to
accomplish this?
2) Outside of Visual Studio, how might I configure my "hosts" file?
WHAT I HAVE ATTEMPTED
----------------------
1) I tried the following "hosts" configuration:
localhost 127.0.0.1
test.domain1.com 192.168.1.1
test.domain2.com 192.168.1.1
WITH THE FOLLOWING host-headers configuration
on my IIS5.1 default web site as:
headername: test.domain1.com
value: test.domain1.com
All unassigned IP port 80
-- and likewise for test.domain2.com
-- Result: I kept gettting the default.aspx file I had placed in my
c:\inetpub\wwwroot.
2) I then added a redirect code to the default.aspx in wwwroot.
Pseudocode:
<pre>
On page load
if server_name = test.domain1.com
response.redirect localhost\domain1-approot
else if server_name = test.domain2.com
respnse.redirect localhost\domain2-approot
</pre>
--Result: recursion
Sorry for the long explain, but I wanna be clear. Does anyone hava a
solution?
Rodney Williams
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
>> Stay informed about: PRoblem: Website Dev Serv to Prod: How do map localhost/ap..