Q: deploy my project

G

Guest

Hello,
I used copy project and create a copy of my project with file required at
run time to deploy my asp.net application to a DMZ web server. I copied the
folder to Web sever and created a web site by pointing this new folder. I
have web site name as MySite. How should I launch this in the internet
explorer to see if it works. I tried http://MySite it did not bring anything.
I have never done this before.
Thanks,
Jim.
 
A

Aaron Corcoran

Jim,

You mentioned you created a new Web site in IIS? Or did you simply
create a virtual directory under the Default Web Site. http://mysite
would not bring up anything due to the host headers associated with
this. What you can do, is either place your newly created projected
within the Default Web Site by using a virtual directory and simply
reference the project by: http://localhost/mysite. This, I'd imagine
is what you are trying to accomplish, but I may be mistaken.

If you do need to keep a new Web site (in IIS), than you will need to
either switch which Web is acting as the Default Web Site by managing
the host headers, or make sure you have a DNS entry pointed to it. Or
if you really want to, you can fake a DNS entry by editing your hosts
file.

Since you have not done this before, I'm assuming you are attempting
to do the first option?

I hope I didn't make things worse!
Aaron
 
G

Guest

Hi Aaron,
Thank you very much for your help. If I copied my project folder MySite to
c:\inetpub\wwwroot\, does that mean I am in Default Web Site.

I checked our IIS and it seems there are two websites running: Default Web
Site and our main website (WebSiteName). Here is more detail for you to help
me more. Our current web site is accessed as
http://WebSiteName.OurDomain.com, and I checked WebSiteName is created a
separate web site with a different IP address.
Now I want to keep the same style and to access to this MySite asp.net
application as http://MySite.OurDomain.com, how can I do this?
I created MySite as a web site and with a different IP address. I also
created virtual directory on that, still do not know what I should do to
access my site as given above.
Thanks for your help.
 
A

Aaron Corcoran

Jim,

Yes, if you place a folder "MySite" in your c:\inetpub\wwwroot,
that would most likely mean that you are in the default Web site,
unless your administrator changed this (possible, but most likely not
the case). What you can do is take the following steps to ensure that
this is the default Web site.

Right click on 'My Computer' and click on manage. At the bottom of
the left tree, you will see "Service and Applications" ->
"Internet Information Service" -> "Web Sites" -> "Default Web
Site". I am sure you are already familiar with these steps; however,
I am simply spelling them out in case someone else is following along.

Right click on the "Default Web Site" icon and select properties.
Select the "Home Directory" tab and ensure that your "Local
Path" is c:\inetpub\wwwroot.

While you are here, go to the "Web Site" tab and next to the "IP
Address" field, there is an "Advanced..." button. Go ahead and
click on that. Just to let you know, this is where the Administrator
places the various domain names that this particular Web site would
use. If you see an entry but it has a blank "Host Header Name",
this simply states that if you type the words 'localhost' into your
browser, this particular Web will respond.

Anyway, a long drawn out story just to ensure everything is set up. Go
ahead and close most of your windows out, but keep the Computer
Management window open. After you drag and drop your "MySite"
folder under the c:\inetpub\wwwroot directory, there is one additional
step you will need to take. Expand the "Default Web Site" icon and
find the "MySite" folder which you just copied and pasted in (you
may have to refresh the tree). Right click on the folder and select
Properties.

Application name should be grayed out. Simply hit create and OK on out
of computer management. You should now be able to access your project
via: http://localhost/mysite.

Now, that is the basic steps. What you will actually want to do to
have a mysite.ourdomain.com type atmosphere is create yet another Web
site. In the computer management tool, where we were before, you will
want to create a new Web Site. Right click on the "Web Sites"
folder under Computer Management and select New -> Web Site. Click
Next. Now fill out a description. You can entitle this new Web site
whatever you desire, but to keep it easy, you may want to give it the
entire domain name (mysite.mydomain.com) so you can easily identify it.
Again, this has no affect on the actual domain name, just keeps it
organized.

The next step is the important part. Keep the IP address as "All
Unassigned" as you can easily run multiple Web sites on the same IP
address (as long as you are running a server type environment (win 2k
or win 2k3) which it sounds like you are. TCP port should remain at
80. Now the Host header is the part you will want to enter your full
domain name. mysite.mydomain.com for instance.

The path is the path to your project folder in your case. You should
be able to keep the rest defaults and breeze through. Now, the one
thing that is out of your control (or may be in your control depending
on your organization) is the DNS entry. Whomever owns the DNS server
that handles mydomain.com for your organization will have to be
contacted. You will simply want them to make a new DNS entry for
mysite under the mydomain.com entry. They should know what you are
talking about. You will want them to point it to the IP address of
your server. It may take a few hours to take affect, but for the most
part, it should be rather instant.

Voila!

I hope this helps!
Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top