cname redirects in asp.net white label application

941 views Asked by At

i am developing a website like with asp.net c#

it is like a white label application

my site is www.example.com where code is hosted

clients will update their cname records to www.example.com

and whole theme, logo etc will be according to client settings i am using code like

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    public void Page_Load(object sender, EventArgs e)
    {
        string s1 ="";
        s1 += "\r Host = " + Request.Url.Host;
        litr.Text = s1;
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Literal ID="litr" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>

experts support needed

thanks in advance

My question is that when I am redirecting via other domain's cname value, I am getting error. The domain where my code is hosted is www.dgtads.com. I tried adding cname of dgt.gujaratcotton.com for testing. but when i visit dgtads.com page shows ok but when i visit dgt.gujaratcotton.com it shows following error

You are not authorized to view this page

The Web server you are attempting to reach has a list of IP addresses that are not allowed to access the Web site, and the IP address of your browsing computer is on this list.

Please try the following:

Contact the Web site administrator if you believe you should be able to view this directory or page. HTTP Error 403.6 - Forbidden: IP address of the client has been rejected. Internet Information Services (IIS)

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled About Security, Limiting Access by IP Address, IP Address Access Restrictions, and About Custom Error Messages.

experts help needed in configuration of iis

0

There are 0 answers