Can someone tell me. The essence of the question is this.

On a new dedicated server, moved the database and files.

Part of the site works - admin, but also not all, through time. The site itself does not open. (I don’t rewrite DNS as I’m not sure about the performance of the site)

Access to the site can be done through the hosts file and set the ip and domain.

The point is, can it really play a role that the NS servers are not registered and the site is incorrectly displayed. Or is this, as I believe, the otmaza of stupid people?

Если подключиться по адресу *.*.*.* через telnet, а потом отправить запрос GET http://site.ru/ HTTP/1.0 - выдается содержимое главной страницы, как оно и должно быть. Так что сам сайт по-видимому работоспособен, а проблема именно в NS-серверах.

This is their answer, to which I do not believe. And here is the connection between the NS servers and the site, which, as a mirror, is transferred from hosting to a separate server. Or am I driving?

I will add. In this scenario, the admin works

AddHandler application / x-httpd-php .html .php

With this, scripts do not work in Html

AddHandler x-httpd-php .html .php

Here is the screen host

42 alt text

Here is .htaccess

 AddHandler application/x-httpd-php .html .php ErrorDocument 404 /error_404.html ErrorDocument 403 /error_403.html #php_value error_reporting 0 RewriteEngine On # другие адреса главной страницы - кидаем на фасад # все несуществующие адреса - тоже на фасад RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^user(.*)$ /user.php [L] 

About telnet they opened a working site. I do not know how, I did not ask. even if I cause an error on the site, I see its type, but they are still

  • I beg you to not write stupid comments - delete immediately! Only in essence and specifics! - Artem
  • In php / js randomly there are no pieces of IP / host verification? I virtuemart this crap pleases constantly. Again, some paths can be fixed. Maybe something in .htaccess be. In any case, look for hard paths - both server ( /var/www/... ) and external ( http://site.ru/... ). - Sh4dow
  • All this is written to new addresses and paths. If it were not spelled then the admin would not work. The question is precisely that it means that "Those who offered me the option that the case is in the NS servers" are he right or not. I think not! This line will not affect the work of the site on a new server. In the scripts, all the paths have already been replaced with new ones; on the site, too, everything is replaced in the config file. The question is different. :) - Artem
  • Updated the question - Artem

2 answers 2

How do you verify that the site is down? And what in the logs?

The support answer is essentially correct. If, when requested directly via telnet web server returns the correct HTML, it means it is working. Anyway, at the requested URL.

And why the site may not work because of DNS, you can think of many reasons. The simplest is if it accesses any of its web services (although in this case, telnet would also give an error)

PS

This is their answer, to which I do not believe.

What do you not believe? Do not believe their words or telnet 'y?

  • we send a request to the IP address. connect. and then send the request GET site.ru HTTP / 1.0 Most likely in the HOSTS file of the one who checks is not registered IP and this domain. Here is the content of the real site! So yes, I DON'T BELIEVE neither to them the telnet in this case. - Artem
  • For some reason, when I telnet'e on the server IP, nothing is given. So the question is still open. - Artem
  • 2
    Yes, I do not need any ip in hosts, do not you know how HTTP works? Suppose if your website is ya.ru and ip of your new server 213.180.204.3 (real ip of Yandex) by doing: $ telnet 213.180.204.3 80 Trying 213.180.204.3 ... Connected to 213.180.204.3. Escape character is '^]'. GET / HTTP / 1.0 Host: ya.ru HTTP / 1.1 200 Ok Server: nginx ... You will make a full request to the server without using dns. And you also don’t trust your server’s logs? - Ilya Pirogov
  • > For some reason, when I telnet'e on the server IP, nothing is given. So the question is still open. So from this and had to start. But what does it mean nothing is given? Timed out? If at the same time the ping to the server passes, then on the server on port 80 no one listens (the web server is turned off, configured for another port, etc). - Ilya Pirogov

In general, the problem was solved simply by rewriting the DNS and setting the server for the needs.

And telnet and gave errors.