473,785 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Host Headers for multiple websites not working

143 New Member
I have a Windows Server 2003. I am trying to run multiple websites on the server.

I have 3 different websites I'd like to run.

Currently the default website is working but no others.

All the domains have an a record pointing to the network router. The router is conficured correctly to send all website requests to my server.

One the server and for each website I went to the IIS manager on the Websites tab and have the IP address set up as the server's IP. I click the advanced button and add a value. I use the server IP, port 80 and the host header value such as www.example.com .

On the Home Directory tab, I have the correct local path specified, And I have Scripts and Executables for the Execute permissions. I have also created a separate Application Pool for each website and have that application pool specified on the home directory tab.

When I type in the url for the desired website using the iis default website all works great. When I type in the url for one of the domains I want to use host headers for I get a runtime error. The web app works great on the development server and when used as the default website in IIS, but will give the runtime error only as a host header.

Any ideas?
Dec 21 '09 #1
3 4530
teddarr
143 New Member
Here's the error I'm gettong and I do have custom errors set to "Off" so I don't know why I'm getting this errpr:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors > tag within a "web.config " configuration file located in the root directory of the current web application. This <customErrors > tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirec t" attribute of the application's <customErrors > configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y" defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
Dec 21 '09 #2
JamieHowarth0
533 Recognized Expert Contributor
Hi teddarr,

Are you using SSL on any of the sites in question? And are you explicitly specifying IP addresses to listen on, or using "All Unassigned" when adding host headers to sites?

Best,

codegecko
Jan 9 '10 #3
JamieHowarth0
533 Recognized Expert Contributor
Hi teddarr,

Are you using SSL on any of the sites in question? And are you explicitly specifying IP addresses to listen on, or using "All Unassigned" when adding host headers to sites?

Best,

codegecko
Jan 9 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
1934
by: Geoff Berrow | last post by:
The host of one of the domains I manage has installed 4.3.11-dev and as a result file uploads no longer work with Internet Explorer. Worth keeping an eye out for. In the meantime I now need to ask why they have installed a development version on a production server... -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies.
1
1098
by: Ben | last post by:
Hi guys, this *should* be a simple problem, but I've never really got my head around it. I'm hoping somebody on this message board could help me out? I don't really have any experience with VS.NET, which is probably why I'm having so much trouble! Basically, I've been doing some OpenGL coding using VS.NET as the compiler. Obviously (if you know any OGL), you'll know I need to include gl.h and glu.h to have access to all the drawing...
3
1534
by: Karl Easterly | last post by:
Hi. I have a site running with a FQDN which is addressed using host headers. Instead of working with the project through a mapped drive, I would like to work with it via the concept implied as 'open->project from web'. I have no problem working with it via the mapped drive, even debuggin is fine. I am sure it is a simple setting I need to toggle, but I do not know which. I tried web sharing the folder but when I open in this mannor I
2
2108
by: Jeff S | last post by:
What are my options if I want to host hundreds of sites on one IIS server (like Internet presence providers do); such that site1.com, site2.com, site3.com... site278.com... are all hosted on the same box? I already know that each site can be specified on a different port, the particular site to be accessed can be specified in the HTTP header, and multiple NICs can be installed on the server - each with its own IP address. I doubt...
3
2981
by: Tim_Mac | last post by:
hi, see quote below from http://groups.google.ie/groups?hl=en&lr=&th=36c5d2df211a4d78&seekm=00480961-660F-462D-BBD4-455C8DA26C38%40microsoft.com&frame=off According to the book: "Deploying .NET Applications Lifecycle Guide" published in Microsoft Press: "Web setup projects allow you to specify which port to install the application on, they do not currently support deployment of a Web application to a site differentiated by host...
8
2048
by: mc | last post by:
I would like to host two websites on my brinkster developer account. I have configured the multiple applications and they both work fine, they can be access at: - myalias.brinkster.net/site1 and myalias.brinkster.net/site2
1
1310
by: =?Utf-8?B?S2l0dHlIYXdr?= | last post by:
I have a simple question that I would like some opinions on regarding common web site headers. I have several web sites (IIS 6), spread across different physical machines that have the same web site header. They are currently a mix of ASP.NET 2.0, 1.1, and plain old HTML pages. For years, I have used ASP.NET user controls for the server-side headers and external JavaScript files to inject the common headers into the HTML files. What I would...
9
4297
by: moondaddy | last post by:
I'm using asp.net 2.0 and c# and would like to share some user control between several websites. these websites are on the same server and have a physical location right next to each other like this: D:\Websites\Website1 D:\Websites\Website2 I'm thinking of putting the controls for sharing in a common directory like this: D:\Websites\CommonControls
0
2447
by: teddarr | last post by:
I have a Windows Server 2003. I am trying to run multiple websites on the server. I am using host headers to run the websites on only one ip address. Before anyone says this is an iis issue and in the wrong forum, Please note that I have tested all the host header settings with a simple hello world html file and everything works great. I get a runtime error that tells me to change custom errors to "Off". The main problem is that custom...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8979
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.