IT_Service
asked on
DNS forwarding to 1 IP address with multiple domains
I have an IIS Server with a dedicated IP address. The server currently hosts 1 website on that IP (abc.com)
I have a request to get a 2nd domain (xyz.com) pointing to a different application on that server on port 90.
So basically, instead of them having to enter an IP address in the URL bar of their browser, I want them to be able to use the domain name.
I have control of the DNS.
I don't have a clear idea of what all the steps are required to complete this.
- update DNS to point the domain to the IP address of the server
- should the DNS forwarding be with or with out the port :90 included?
- add the site in IIS (xyz.com) to be bound to port 90 on the IP address of the server
Is that correct? Is there anything missing?
Thanks
IT_Service
I have a request to get a 2nd domain (xyz.com) pointing to a different application on that server on port 90.
So basically, instead of them having to enter an IP address in the URL bar of their browser, I want them to be able to use the domain name.
I have control of the DNS.
I don't have a clear idea of what all the steps are required to complete this.
- update DNS to point the domain to the IP address of the server
- should the DNS forwarding be with or with out the port :90 included?
- add the site in IIS (xyz.com) to be bound to port 90 on the IP address of the server
Is that correct? Is there anything missing?
Thanks
IT_Service
Hi,
Please refer my following accepted post for the same:
https://www.experts-exchange.com/questions/26675956/How-to-give-the-name-to-my-websites-in-IIS7.html
Please refer my following accepted post for the same:
https://www.experts-exchange.com/questions/26675956/How-to-give-the-name-to-my-websites-in-IIS7.html
ASKER
Ok, now in the DNS I have www.xyz.com and xyz.com pointing to the Public IP of the webserver.
In IIS, I set up the site bindings for
xyz.com : 90
www.xyz.com : 90
Yet, when I use the URL http://111.111.111.111:90/SearchPortal.aspx?id=OatHbSCh/y8=
(where 111.111.111.111 is the public IP) it works fine.
But if I try to replace the IP with http://www.xyz.com:90/SearchPortal.aspx?id=OatHbSCh/y8=
I get this error in my browser:
*********************
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 -->
<configuration>
<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 "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustomp age.htm"/>
</system.web>
</configuration>
*********************
In IIS, I set up the site bindings for
xyz.com : 90
www.xyz.com : 90
Yet, when I use the URL http://111.111.111.111:90/SearchPortal.aspx?id=OatHbSCh/y8=
(where 111.111.111.111 is the public IP) it works fine.
But if I try to replace the IP with http://www.xyz.com:90/SearchPortal.aspx?id=OatHbSCh/y8=
I get this error in my browser:
*********************
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 -->
<configuration>
<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 "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustomp
</system.web>
</configuration>
*********************
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is the error that is now returned. I don't know what to make of it, but have passed it off to the developers. Any ideas?
Thanks.
***********
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'NRwebSearch' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Source Error:
Line 57: <add assembly="System.Enterpris eServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a"/>
Line 58: <add assembly="System.Web.Mobil e, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a"/>
Line 59: <add assembly="*"/>
Line 60: <add assembly="System.Runtime.S erializati on, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL "/>
Line 61: <add assembly="System.IdentityM odel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL "/>
Source File: C:\Windows\Microsoft.NET\F ramework64 \v2.0.5072 7\Config\w eb.config Line: 59
Assembly Load Trace: The following information can be helpful to determine why the assembly 'NRwebSearch' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F usion!Enab leLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F usion!Enab leLog].
Thanks.
***********
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'NRwebSearch' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Source Error:
Line 57: <add assembly="System.Enterpris
Line 58: <add assembly="System.Web.Mobil
Line 59: <add assembly="*"/>
Line 60: <add assembly="System.Runtime.S
Line 61: <add assembly="System.IdentityM
Source File: C:\Windows\Microsoft.NET\F
Assembly Load Trace: The following information can be helpful to determine why the assembly 'NRwebSearch' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F
Hi,
Now add these assemblies in your web.config file which you recently created. Add all the remaining lines also which you will find in error after adding these lines.
Note: Do not add any other line which is not required by your web.config in error.
Now add these assemblies in your web.config file which you recently created. Add all the remaining lines also which you will find in error after adding these lines.
Note: Do not add any other line which is not required by your web.config in error.
ASKER
I'm not familiar with the web.config file structure... Would the following be correct?
*****************
<?xml version="1.0"?>
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
<add assembly="System.Enterpris eServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a"/>
<add assembly="System.Web.Mobil e, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a"/>
<add assembly="*"/>
<add assembly="System.Runtime.S erializati on, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL "/>
<add assembly="System.IdentityM odel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL "/>
</configuration>
************************
Or do the added assemblies need to be contained in some kind of <section> </section>?
thanks
*****************
<?xml version="1.0"?>
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
<add assembly="System.Enterpris
<add assembly="System.Web.Mobil
<add assembly="*"/>
<add assembly="System.Runtime.S
<add assembly="System.IdentityM
</configuration>
************************
Or do the added assemblies need to be contained in some kind of <section> </section>?
thanks
Hi,
Provide me your complete web.config file, I will modified it and get back to you.
Provide me your complete web.config file, I will modified it and get back to you.
ASKER
You want the original file ... the one I made a backup of before changing it to what is posted above?
Hi,
Your original backup file.
Your original backup file.
ASKER
Here is the complete text ... with of course public key tokens, user names and passwords replaced:
************************** ********** ********** *****
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxC lasses.Set tingsConfi gurationSe ction, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="compression" type="DevExpress.Web.ASPxC lasses.Com pressionCo nfiguratio nSection, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="themes" type="DevExpress.Web.ASPxC lasses.The mesConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="errors" type="DevExpress.Web.ASPxC lasses.Err orsConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<!--<section name="compression" type="DevExpress.Web.ASPxC lasses.Com pressionCo nfiguratio nSection, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />-->
<!--<section name="themes" type="DevExpress.Web.ASPxC lasses.The mesConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />-->
<!--<section name="errors" type="DevExpress.Web.ASPxC lasses.Err orsConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />-->
</sectionGroup>
</configSections>
<appSettings />
<connectionStrings>
<add name="Search_Con" connectionString="server=. ;database= @databasen ame;Integr ated security=false;User Id=User1;password=password one;" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="DevExpress.Web.A SPxEditors .v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.v 10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Data. v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxGridVie w.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxHtmlEdi tor.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxSpellCh ecker.v10. 2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<!--<add assembly="DevExpress.XtraS pellChecke r.v10.2.Co re, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />-->
<add assembly="System.Windows.F orms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=edcba098765 4321" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=fedcba09876 54321" />
<add assembly="System.Web.Exten sions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=abcdef12345 67890" />
<add assembly="System.Web.Exten sions.Desi gn, Version=4.0.0.0, Culture=neutral, PublicKeyToken=abcdef12345 67890" />
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericEr rorPage.ht m">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm " />
</customErrors>
-->
<httpModules>
<add type="DevExpress.Web.ASPxC lasses.ASP xHttpHandl erModule, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" name="ASPxHttpHandlerModul e" />
</httpModules>
<pages controlRenderingCompatibil ityVersion ="3.5" clientIDMode="AutoID" />
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<modules>
<add type="DevExpress.Web.ASPxC lasses.ASP xHttpHandl erModule, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" name="ASPxHttpHandlerModul e" />
</modules>
<validation validateIntegratedModeConf iguration= "false" />
</system.webServer>
<devExpress>
<compression enableHtmlCompression="fal se" enableCallbackCompression= "true" enableResourceCompression= "true" enableResourceMerging="fal se" />
<themes enableThemesAssembly="true " />
<errors callbackErrorRedirectUrl=" " />
<settings rightToLeft="false" />
</devExpress>
</configuration>
************************** ********** ********** *****
**************************
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxC
<section name="compression" type="DevExpress.Web.ASPxC
<section name="themes" type="DevExpress.Web.ASPxC
<section name="errors" type="DevExpress.Web.ASPxC
<!--<section name="compression" type="DevExpress.Web.ASPxC
<!--<section name="themes" type="DevExpress.Web.ASPxC
<!--<section name="errors" type="DevExpress.Web.ASPxC
</sectionGroup>
</configSections>
<appSettings />
<connectionStrings>
<add name="Search_Con" connectionString="server=.
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.v
<add assembly="DevExpress.Data.
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.A
<!--<add assembly="DevExpress.XtraS
<add assembly="System.Windows.F
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=fedcba09876
<add assembly="System.Web.Exten
<add assembly="System.Web.Exten
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericEr
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm
</customErrors>
-->
<httpModules>
<add type="DevExpress.Web.ASPxC
</httpModules>
<pages controlRenderingCompatibil
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<modules>
<add type="DevExpress.Web.ASPxC
</modules>
<validation validateIntegratedModeConf
</system.webServer>
<devExpress>
<compression enableHtmlCompression="fal
<themes enableThemesAssembly="true
<errors callbackErrorRedirectUrl="
<settings rightToLeft="false" />
</devExpress>
</configuration>
**************************
Hi,
Try with following web.config code
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxC lasses.Set tingsConfi gurationSe ction, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="compression" type="DevExpress.Web.ASPxC lasses.Com pressionCo nfiguratio nSection, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="themes" type="DevExpress.Web.ASPxC lasses.The mesConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
<section name="errors" type="DevExpress.Web.ASPxC lasses.Err orsConfigu rationSect ion, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" requirePermission="false" />
</sectionGroup>
</configSections>
<appSettings />
<connectionStrings>
<add name="Search_Con" connectionString="server=. ;database= @databasen ame;Integr ated security=false;User Id=User1;password=password one;" />
</connectionStrings>
<system.web>
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="DevExpress.Web.A SPxEditors .v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.v 10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Data. v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxGridVie w.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxHtmlEdi tor.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="DevExpress.Web.A SPxSpellCh ecker.v10. 2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" />
<add assembly="System.Windows.F orms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=edcba098765 4321" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=fedcba09876 54321" />
<add assembly="System.Web.Exten sions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=abcdef12345 67890" />
<add assembly="System.Web.Exten sions.Desi gn, Version=4.0.0.0, Culture=neutral, PublicKeyToken=abcdef12345 67890" />
</assemblies>
</compilation>
<customErrors mode="Off" defaultRedirect="GenericEr rorPage.ht m">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm " />
</customErrors>
<system.webServer>
<modules>
<add type="DevExpress.Web.ASPxC lasses.ASP xHttpHandl erModule, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=1234567890a bcdef" name="ASPxHttpHandlerModul e" />
</modules>
</system.webServer>
<devExpress>
<compression enableHtmlCompression="fal se" enableCallbackCompression= "true" enableResourceCompression= "true" enableResourceMerging="fal se" />
<themes enableThemesAssembly="true " />
<errors callbackErrorRedirectUrl=" " />
<settings rightToLeft="false" />
</devExpress>
</configuration>
Try with following web.config code
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxC
<section name="compression" type="DevExpress.Web.ASPxC
<section name="themes" type="DevExpress.Web.ASPxC
<section name="errors" type="DevExpress.Web.ASPxC
</sectionGroup>
</configSections>
<appSettings />
<connectionStrings>
<add name="Search_Con" connectionString="server=.
</connectionStrings>
<system.web>
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.v
<add assembly="DevExpress.Data.
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.A
<add assembly="DevExpress.Web.A
<add assembly="System.Windows.F
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=fedcba09876
<add assembly="System.Web.Exten
<add assembly="System.Web.Exten
</assemblies>
</compilation>
<customErrors mode="Off" defaultRedirect="GenericEr
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm
</customErrors>
<system.webServer>
<modules>
<add type="DevExpress.Web.ASPxC
</modules>
</system.webServer>
<devExpress>
<compression enableHtmlCompression="fal
<themes enableThemesAssembly="true
<errors callbackErrorRedirectUrl="
<settings rightToLeft="false" />
</devExpress>
</configuration>
ASKER
Ok, now I just get this error:
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
ASKER
The developers somehow resolved the issue.
Thanks for you help.
Thanks for you help.
ASKER
solutions was arrived at with help of others as well as this.
and in IIS create hostheaders for example.
192.168.0.100 90 www.xyz.com
192.168.0.100 90 xyz.com