D
D
DVoropaev2017-08-25 14:11:32
linux
DVoropaev, 2017-08-25 14:11:32

How to find "Server not found" problem in apache?

There is a server with apache, on which there are several sites.
Among them is testsite.eu.
I registered it in the /etc/hosts file on the working machine .
Rebooted
. I open "testsite.eu" in the browser, and I get "Server not found".
I try to ping - it responds.
I try to knock with wget:

wget refus.eu 
--2017-08-25 15:08:11--  http://refus.eu/
Распознаётся testsite.eu (testsite.eu)… <ip-адрес(правильный)>
Подключение к testsite.eu (testsite.eu)|<ip-адрес(правильный)>|:80... соединение установлено.
HTTP-запрос отправлен. Ожидание ответа… 301 Moved Permanently
Адрес: http://www.testsite.eu/ [переход]
--2017-08-25 15:08:11--  http://www.testsite.eu/
Распознаётся www.testsite.eu (www.testsite.eu)… ошибка: С именем узла не связано ни одного адреса.
wget: не удаётся разрешить адрес «www.testsite.eu»

Scanning with nmap:
nmap testsite.eu
...
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
443/tcp open  https
...

knocking on telnet:
telnet testsite.eu 80
Trying <ip-адрес(правильный)>...
Connected to testsite.eu..
Escape character is '^]'.
1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Not Implemented</title>
</head><body>
<h1>Not Implemented</h1>
<p>1 to /index.html not supported.<br />
</p>
</body></html>
Connection closed by foreign host.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2017-08-25
@Rsa97

wget: unable to resolve the address "www.testsite.eu"
DNS must be set specifically for www.testsite.eu

D
Denis Sechin, 2017-08-25
@tamogavk

What exactly was written in resolv.conf and why? it is created dynamically, why write something there?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question