网站无法通过主机名访问。 [英] Website could not access through host name.

查看:125
本文介绍了网站无法通过主机名访问。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我有一个网站,通过使用添加网站在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[^]


这篇关于网站无法通过主机名访问。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆