部署中的域名而不是IP地址 [英] Domain name instead of IP address in deployment

查看:115
本文介绍了部署中的域名而不是IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用.net framework 4.0部署了一个asp.net mvc网站(Windows身份验证)。网站网址就像http://xxx.xx.xx.xxx/wesitename.(x是Ipaddress)。我的客户说他想用网址http:// websitename访问网站。我在IIS 6.0中部署了网站,我做了一些R& D在主机名的IIS设置上,但我仍然无法得到它。



如果你们有任何想法,请告诉我。



我尝试了什么:



我在IIS和其他配置编辑器中进行了一些设置更改设置,但结果仍然相同。

Hi all,
I deployed one asp.net mvc website (Windows authentication) using .net framework 4.0. Website url is like http://xxx.xx.xx.xxx/wesitename.(x is Ipaddress).My client says he wants to access the website with url as http://websitename. I deployed website in IIS 6.0 and I did some R & D on IIS setting of host name but still i am not able to get it.

If you guys have any idea then let me know.

What I have tried:

I did some setting change in configuration editor in IIS and other settings but still result is same.

推荐答案

您好,您需要静态IP地址,然后您需要将您的域映射到此IP地址,以便请求可以是当您通过域名访问您的网站时,重定向到您的服务器。



如果您可以设置自己的服务器,请参阅此链接设置您自己的家庭网络服务器 [ ^ ],或者你可以尝试像谷歌云,Windows Azure云,亚马逊等云平台Web服务和IBM Cloud,您可以使用stati设置自己的服务器c IP地址。
Hi, you need static IP address, then you need to map your domain to this IP address, so that the requests can be redirected to your server while you access your website through domain name.

If you can setup your own server, just refer this link Setting up your own home web server[^], Or you can try Cloud platforms like Google Cloud, Windows Azure Cloud, Amazon Web Services and IBM Cloud, where you can setup your own server with static IP address.


如果您希望客户端使用URL而不是IP地址访问网站,则必须在DNS服务器上配置DNS条目。



名称解析是DNS服务器的一项功能,而不是网络服务器的功能。



如果您的网站是托管的在客户网络之外,您有两种选择:

- 您是否在公共DNS域上创建DNS记录(您必须获得一个)

- 或者您在客户端的内部DNS上创建此记录



如果您的网站在您的客户端内部托管,那么您应该在其内部DNS区域添加DNS条目。



您还可以选择在应该访问您的应用程序的每台计算机的 hosts 文件中添加一行。 />


希望这会有所帮助。
If you want your client to access the website with an URL instead of an IP address, then you will have to configure a DNS entry on a DNS server.

Name resolution is a feature of a DNS server, not of a web one.

If your website is hosted outside of your client's network, you have two choices:
- whether you create a DNS record on your public DNS domain (you will have to get one)
- or you create this record on your client's internal DNS

If your website is hosted internally at your client's, then you should add a DNS entry on its internal DNS zone.

You also have the option to add a line in the hosts file of every computer that should access your application.

Hope this helps.


这篇关于部署中的域名而不是IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆