你好 我有一个网站,通过使用添加网站在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[^]
更多推荐
网站无法通过主机名访问。
发布评论