如何使用IIS和域通过Internet上载网站 [英] How to Upload website over internet by using IIS and domain

查看:96
本文介绍了如何使用IIS和域通过Internet上载网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请分步向我说明如何通过互联网托管网站.通过在域的帮助下使用iis服务器

Please Explain me step by Step, how to host a website over internet. by using iis server with help of domain

推荐答案

要在iis中托管asp.net网站,您可以按照以下步骤操作:

To host asp.net site in iis you could follow the below steps:

1)打开Visual Studio.选择您的站点,然后在该站点上单击鼠标右键->单击发布".

1)open the visual studio. Select your site and right-click on that-> Click publish.

2)在选择发布目标中选择文件夹选项,然后在要发布站点的位置创建选择目的地. (新建一个文件夹,然后在该文件夹中发布网站),然后选择发布.

2) in pick up publish target Select folder option and create choose destination where you want to publish the site. (make a new folder and publish a site in that folder) and then select publish.

3)打开IIS管理器(如果未安装,请先安装).

3)open IIS manager(if not installed then installed it first).

4)扩展服务器名称,然后右键单击站点,然后选择添加新站点.

4)expand the server name and right-click on sites and select add a new site.

5)输入网站名称,物理路径和网站绑定详细信息.

5)enter the site name, physical path, and site binding details.

(注意:首先需要拥有一个公共IP,并将域绑定到您购买域名的IP.然后,在IIS中,照常绑定IP和主机名)

(Note: you need to have a public IP first, and bind the domain to the IP at where you purchased the domain name. after that, in IIS, bind IP and hostname as usual)

6)单击确定.

如果您的站点中具有url重写规则和其他外部设置,则需要在iis中安装该外部模块.

if you have url rewrite rule and other external settings in your site you need to install that external module in iis.

有关更多详细信息,请检查以下链接:

for more detail please check the below link:

查看全文

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