在 Windows Azure 中的自定义端口号上发布网站?

发布于 2024-11-15 15:32:38 字数 103 浏览 3 评论 0原文

我们正在尝试在 Azure 中发布三个站点,它们位于端口 8080-8082 上。 8080 上的站点工作正常,但 8081 和 8082 上的站点没有从外部响应。

有想法吗?

We are trying to publish three sites in Azure, they are on ports 8080-8082.
The site on 8080 works fine, the sites on 8081 and 8082 does however not respond from the outside.

Ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与君绝 2024-11-22 15:32:38

这是单一角色吧?你能把你的ServiceDefinition放上来看看吗?通常,这是因为您错误配置了输入端点或绑定。这是一个简单的示例,在 3 个不同的端口上有 3 个站点。

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="WindowsAzureProject1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="MvcWebRole1">
    <Sites>
      <Site name="Web1" physicalDirectory="../pathtowebsite1">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
      <Site name="Web2" physicalDirectory="../pathtowebsite2">
        <Bindings>
          <Binding name="Endpoint2" endpointName="Endpoint2" />
        </Bindings>
      </Site>
      <Site name="Web2" physicalDirectory="../pathtowebsite3">
        <Bindings>
          <Binding name="Endpoint3" endpointName="Endpoint3" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="8080" />
      <InputEndpoint name="Endpoint2" protocol="http" port="8081" />
      <InputEndpoint name="Endpoint3" protocol="http" port="8082" />
    </Endpoints>
  </WebRole>
</ServiceDefinition>

This is on a single role, right? Can you put your ServiceDefinition up to look at? Typically this is because you miconfigured input endpoints or the binding. Here is a trivial example that has 3 sites on 3 different ports.

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="WindowsAzureProject1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="MvcWebRole1">
    <Sites>
      <Site name="Web1" physicalDirectory="../pathtowebsite1">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
      <Site name="Web2" physicalDirectory="../pathtowebsite2">
        <Bindings>
          <Binding name="Endpoint2" endpointName="Endpoint2" />
        </Bindings>
      </Site>
      <Site name="Web2" physicalDirectory="../pathtowebsite3">
        <Bindings>
          <Binding name="Endpoint3" endpointName="Endpoint3" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="8080" />
      <InputEndpoint name="Endpoint2" protocol="http" port="8081" />
      <InputEndpoint name="Endpoint3" protocol="http" port="8082" />
    </Endpoints>
  </WebRole>
</ServiceDefinition>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文