[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ошибка Cron



Am 13.01.2014 20:00, schrieb EyeLand:
  13 января 2014 г., 20:32 пользователь Mikhail A Antonov
<bart@solarnet.ru> написал:
egrep -ri "NameVirtualHost *:443|NameVirtualHost *:80" /etc/apache2/
Увидишь где оно прописано. Скорее всего это будет файл
/etc/apache2/ports.conf
Затем посмотри /etc/apache2/sites-enabled/ и в /etc/apache2/apache2.conf
Увидишь там блоки
<VirtualHost *:80>
<...>
</<VirtualHost>
или
<VirtualHost твой_IP:80>
<...>
</<VirtualHost>
Если блоки содержат именно твой_IP:80 а не *:80 (скорее всего это именно
так) - то вернись в файл, где встречается NameVirtualHost и замени там
*:80 на твой_IP:80 или вовсе удали строки с *:80 и *:443 так как строки
с твоим IP скорее всего уже есть.



--
Best regards,
Mikhail
-
WWW: http://www.antmix.ru/
XMPP: antmix@stopicq.ru

1) при вводе egrep -ri "NameVirtualHost *:443|NameVirtualHost *:80"
/etc/apache2/ получаю:

root@vps1:~# egrep -ri "NameVirtualHost *:443|NameVirtualHost *:80"
/etc/apache2/
root@vps1:~#

2) в файле /etc/apache2/sites-enabled/ нет строки <VirtualHost *:80>
но есть текст:

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80

Вроде-бы здесь должно стоять
ServerName domain.com:80

Listen 80

<IfModule mod_ssl.c>
     # If you add NameVirtualHost *:443 here, you will also have to change
     # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
     # to <VirtualHost *:443>
     # Server Name Indication for SSL named virtual hosts is currently not
     # supported by MSIE on Windows XP.
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

3) в файле /etc/apache2/apache2.conf нет строки <VirtualHost *:80> но
есть текст:

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives and /usr/share/doc/apache2-common/README.Debian.gz about
# Debian specific hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#       /etc/apache2/
#       |-- apache2.conf
#       |       `--  ports.conf
#       |-- mods-enabled
#       |       |-- *.load
#       |       `-- *.conf
#       |-- conf.d
#       |       `-- *
#       `-- sites-enabled
#               `-- *
#

--
..
http://wiedergold.net/


Reply to: