[英]How to configure sub domain name IIS
I work in a organization that has a certificate *.mycompany.com我在一个拥有证书 *.mycompany.com 的组织工作
I developed a ASP.NET CORE API and hosting my endpoints as windows servic e.我开发了一个 ASP.NET CORE API 并将我的端点托管为 windows 服务e。 How can i set the host name for my API like myapi.mycompany.com ?如何为我的 API 设置主机名,例如myapi.mycompany.com ? I can able to browse with servername:port.mycompany.com我可以使用服务器名称浏览:port.mycompany.com
There are already some sites configured on the same server which i deployed my application on port 7788已经在同一台服务器上配置了一些站点,我在端口7788上部署了我的应用程序
I gave a try and searching all articles in google and stack overflow but none of them understandable to fix that.我尝试在谷歌和堆栈溢出中搜索所有文章,但没有一个可以解决这个问题。
servername:port.mycompany.com is not a standard host name format. servername:port.mycompany.com不是标准主机名格式。 If you means that you can access the site via servername.mycompany.com:port.如果您的意思是您可以通过 servername.mycompany.com:port 访问该站点。 Then you should already have a local active domain and DNS forward lookup zone mycompany.com .那么您应该已经有一个本地活动域和 DNS 正向查找区域mycompany.com 。
So please create an alias(CNAME) api for your host(A) servername.mycompany.com.因此,请为您的主机 (A) servername.mycompany.com 创建一个别名 (CNAME) api 。 Then its FQDN should be api.mycompany.com.那么它的 FQDN 应该是 api.mycompany.com。 Once you register DNS.一旦你注册了 DNS。
You should run ipconfig /flushdns and access the website via myapi.mycompany.com.您应该运行 ipconfig /flushdns 并通过 myapi.mycompany.com 访问该网站。 If you don't want to expose port number.如果您不想公开端口号。 Please set your port number ASPNETCORE_URLS
to 80.请将您的端口号ASPNETCORE_URLS
设置为 80。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.