网址未找到。 dns改变后 [英] Url not found. After dns changes

查看:86
本文介绍了网址未找到。 dns改变后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在24小时前更改了我的dns指向我的主机,[域A已删除]但现在我收到错误404在此服务器上找不到请求的URL /。我需要在我的服务器上进行更改或添加,因为在同一台服务器上也存在[域B已删除]相同的文件是一个问题。我的主持人管理员说我只是等待dns传播...

否则我对我的最后一个问题有一个很好的答案,所以我按照建议更改了dns ..



我尝试了什么:



还没有尝试过而不是改变dns等待24更改时间。

I just changed my dns about 24hrs ago to point to my host, [domain A removed] but now I get error 404 The requested URL / was not found on this server. What do I need to change on my server or add as there is also same files of [domain B removed] on the same server is that an issue. My host admin says I just wait for dns to propagate...
Otherwise I had a nice answer with my last question regarding the same so I changed the dns as was advised..

What I have tried:

Not yet anything tried rather than changing dns and waited 24 hours for changes.

推荐答案

您必须配置Apache服务器以提供内容。实际上可以解析URL并运行Apache服务器。但是没有内容(由404错误代码报告)。



Apache配置文件 httpd.conf 应该有 DocumentRoot 条目指向网页文件的根目录。该目录应包含起始页文件(默认情况下为 index.html )。 404错误告诉您无法找到起始页文件(在未指定文件的情况下连接到Web服务器时,它将尝试访问配置的默认文件名)。



如果您有一个不同名称的起始页文件,请将其添加到您的配置中。

示例:

You have to configure your Apache server to deliver content. Actually the URL can be resolved and there is an Apache server running. But there is no content (as reported by the 404 error code).

The Apache config file httpd.conf should have a DocumentRoot entry that points to the root directory of your web page files. That directory should contain the start page file (index.html by default). The 404 error tells you that the start page file could not be found (when connecting to web servers without specifying a file, it will try to access the configured default file names).

If you have a start page file with a different name, add that to your configuration.
Example:
DocumentRoot /var/www/html/
DirectoryIndex home.html start.html index.html


使用ping或nslookup等网络工具来查看域是否已为您解决(请记住,某些人看到更改所需的时间比其他人要长)。如果主机未指向新域,则按照建议执行并等待。如果dns已重定向并且您获得了404,那么您的站点未正确设置或配置。由于我们不知道您是如何尝试设置的,因此我们无法提供帮助,您只需要检查您的文件是否位于正确的位置等。
Use network tools like ping or nslookup to see if the domain has resolved for you yet (remember it will take longer for some people to see the changes than others). If the host is not pointing to the new domain yet then do as suggested and wait. If the dns has redirected and you're getting a 404 then your site isn't setup or configured correctly. As we have no idea how you have tried to set it up there isn't much we can do to help, you'll just need to check your files are in the right location etc.


这篇关于网址未找到。 dns改变后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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