我正在使用web deploy发布一个MVC网站。发布成功,但网站从未加载。我想可能是我给它的url。我正在使用Windows Server 2012。这是用于测试的内部服务器。但我在IIS配置和web配置中使用的URL是一个未注册的虚构url。即logman.com。我做错了吗?既然它只能在我们的网络上运行,我是否应该使用某个ip地址?我应该如何配置它?
使用一些新的设置编辑*我正在使用来自edit Bindings菜单的ip地址。没有给它一个主机名;下面是来自visual studio的结果:
`2>Start Web Deploy Publish the Application/package to https://myserver/msdeploy.axd?site=lmsmobile.com ...
2>Adding ACL's for path (lmsmobile.com)
2>Adding ACL's for path (lmsmobile.com)
2>Updating file (lmsmobile.com\bin\LMSMobile.dll).
2>Updating file (lmsmobile.com\bin\LMSMobile.pdb).
2>Updating file (lmsmobile.com\Views\Web.config).
2>Updating file (lmsmobile.com\Web.config).
2>Adding ACL's for path (lmsmobile.com)
2>Adding ACL's for path (lmsmobile.com)
2>Publish Succeeded.
2>Site was published successfully http://10.58.158.75/
Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped
Publish: 1 succeeded, 0 failed, 0 skipped`以下是我的发布设置:
`<?xml version="1.0" encoding="utf-8"?>
<publishData>
<publishProfile
publishUrl="https://myserver:8172/msdeploy.axd"
msdeploySite="lmsmobile.com"
destinationAppUrl="http://10.58.158.75:80/"
mySQLDBConnectionString=""
SQLServerDBConnectionString=""
profileName="Default Settings"
publishMethod="MSDeploy"
userName="MYSERVERNAME\myusername" />
</publishData>`目前,当我导航到ip地址时,我得到的是IIS8网页。还是看不到我的网站。
编辑2:
我通过输入IP地址并刷新页面(shift + refresh)跳过了IIS页面。我得的是403禁赛。我将IIS中的目录浏览器设置更改为启用,并在刷新时获得我的站点所在文件夹的目录列表。还是没有网站。将目录浏览设置为禁用I get 403。
发布于 2014-07-26 00:10:38
在内部测试时,我会考虑使用ip地址。要正确解析dns域名,需要将其添加到内部dns服务器以指向您的web服务器。
通过使用相同的ip地址,可以在不同的开发阶段运行多个web站点,并在创建站点时分配一个4位端口号,如192.168.100.201:8090。
当为IIS进行配置时,需要将其配置为网站绑定的一部分。
https://stackoverflow.com/questions/24959923
复制相似问题