Solved

Need to have multiple sites on same server without conflict

Posted on 2004-04-01
10
862 Views
Last Modified: 2008-03-03
On IIS I just installed an application in a subdirectory under C:\INETPUB\WWWROOT.

For the sake of argument, let's call it "ABC" so it's C:\INETPUB\WWWROOT\ABC.

The application expects its files to be in the root directory, meaning
its ColdFusion scripts and Image references presume it's at the
top of the directory tree, but it's not and I don't want to put it
there, since it may step on other things I have going there.

I figured there's a way to make a new Web site on the same server
and then configure it so that its root / home directory is
C:\INETPUB\WWWROOT\ABC.  I did and it works as I want it
to, but the only way I can get that new Web site to run is if I
shut down the main one (not good).  The two Web sites seem
to be conflicting, as suggested by the error message
"The service could not be started because it is not correctly
configured.  Make sure that its server bindings do not conflict
with other sites running on the same machine."  
In the main site, I tried to shut down every capability on
the C:\INETPUB\WWWROOT\ABC directory, including
READ, SCRIPTS and so on -- didn't fix the problem.

I neither understand what is conflicting nor how to fix it.
I think this is IIS 4.  It's running on NT Server 4.0 Service
Pack 6a.  Yes, I know it's old.
0
Comment
Question by:volvopilot
10 Comments
 
LVL 4

Assisted Solution

by:SurferJoe
SurferJoe earned 50 total points
ID: 10733561
Oh Man, can’t remember back that far:)

Try creating a dir C:\ABC

Drop all of the content and subfolders in there,
then point IIS's local path entry to that folder.

Typically we don’t place webs in the C:\INETPUB\WWWROOT folder for security purposes.

That’s where hackers look for them;)

HTH
0
 
LVL 5

Expert Comment

by:n0ch1ps
ID: 10733609
0
 

Author Comment

by:volvopilot
ID: 10734289
Thanks for the info.  

SurferJoe: I made another directory off the root, then reconfigured the
secondary Web site to have that as its home page.  Thanks for the
comment re the hackers.  Point well taken.  However,this different
directory location did not solve the problem.

Si: I read the article.  The error message it references is exactly the
one I'm getting, but it recommends: "To work around this problem,
use the Microsoft Management Console-based ISM, which does not
exhibit this problem."  Well, that is what I'm using, and yet the
problem is there.

So ... any other suggestions, please?
0
 
LVL 5

Expert Comment

by:n0ch1ps
ID: 10734827
OK, so have you used host headers for your sites?
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:volvopilot
ID: 10737419
Um, sorry, no.  In fact (confession) I don't know what
a host header is.  Would you please elaborate?
0
 
LVL 5

Accepted Solution

by:
n0ch1ps earned 350 total points
ID: 10738906
Sure, IIS allows you to assign any number of sites to a single IP address and distinguish them by using host headers. When IIS receives a request for a Web page, it looks at the information sent in by the browser. If the browser is HTTP 1.1 compliant, the HTTP header contains the actual domain name requested. IIS uses this to determine which site should answer the request.

So in your case you would have site 1 called ABC1 and site 2 called ABC2.  To use these on the same IIS server bound to the same IP address, you need to use host headers.

Start the Internet Service Manager (Iis.msc).
Right-click the Web site to be configured, and then click Properties.
On the Web Site tab, select the IP address that the site will use.

Click Advanced.
In the Multiple identities for this Web Site list, select the identity that you want to use.
Click Edit, and then add the desired host header name.  eg. ABC1 for site 1 and ABC2 for site 2

Register the host header name with the appropriate name resolution system.  If you're using localhost you could just put an entry in your host file for your host header name.

Regards

Si

0
 
LVL 4

Assisted Solution

by:anderson22
anderson22 earned 50 total points
ID: 10762985
host headers is the easiest way to handle this and probably best way.  You can also use multiple IP addresses, assuming you have them.  You can then just create each website on it's on IP address.

-rca
0
 
LVL 2

Assisted Solution

by:Psychotext
Psychotext earned 50 total points
ID: 10855089
0
 

Author Comment

by:volvopilot
ID: 13234788
Sorry for the delay -- and thank you all for the helpful input
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now