网站无法通过主机名访问。

编程入门 行业动态 更新时间:2024-10-26 14:37:54
本文介绍了网站无法通过主机名访问。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好 我有一个网站,通过使用添加网站在IIS上托管,在网站边我创建了一个虚拟目录。 如果我将提供主机名作为digmans这样的名字,那就有用了。 它如果我将主机名称提供为digmans.uuu.in之类的名称,则无效。 并且digmans.uuu.in主机名正在工作静态或没有会话或cookie页面,不适用于任何数据库连接页面。 如果有任何解决方案请回复。 我尝试了什么: 因使用不同的主机名而感到厌烦。

hello I have a website and hosted on IIS by using add web site and in side the webside i have created a virtual directory. It is working if i will provide the host name as some name like "digmans" It is not working if i will provide the host name as some name like "digmans.uuu.in" And "digmans.uuu.in" host name is working for a static or without session or cookies page and not working for any database connection page. If any solution please response. What I have tried: Tired by taking different different host name.

推荐答案

如果要在本地托管时使用域名类型名称,则必须将它们添加到Windows中的hosts文件中,否则它们将由您的dns服务器路由到该域实际所在的位置。 如何在Windows,Mac或Linux上编辑主机文件 [ ^ ] if you want to use domain name type names when hosting locally, you must add them to your hosts file in windows as they will otherwise get routed by your dns server on duty to where that domain actually is. How to Edit Your Hosts File on Windows, Mac, or Linux[^]

更多推荐

网站无法通过主机名访问。

本文发布于:2023-10-10 12:11:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1478635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主机名   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!