@hey_umbrella

В чем ошибка NameVirtualHost?

После того,как я включил ssl, у меня при запуске ошибка AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:6

Конфиг сайта
<VirtualHost *:80>
  ServerName careforme.ru
  ServerAdmin careforme@email.com
  WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi
  <Directory /var/www/FlaskApp/FlaskApp/>
    Order allow,deny
    Allow from all
  </Directory>
  Alias /static /var/www/FlaskApp/FlaskApp/static
   <Directory /var/www/FlaskApp/FlaskApp/static/>
    Order allow,deny
    Allow from all
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
  ServerName careforme.ru
  ServerAdmin careforme@email.com
  WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi
  <Directory /var/www/FlaskApp/FlaskApp/>
    Order allow,deny
    Allow from all
  </Directory>
  Alias /static /var/www/FlaskApp/FlaskApp/static
   <Directory /var/www/FlaskApp/FlaskApp/static/>
    Order allow,deny
    Allow from all
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  SSLEngine on
  SSLProtocol all -SSLv2
  SSLCertificateKeyFile /etc/cloudflare/careforme.ru.key
  SSLCertificateFile /etc/cloudflare/careforme.ru.pem
</VirtualHost>


Конфиг port.conf
# 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.con


NameVirtualHost *: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.
NameVirtualHost *:443
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>
  • Вопрос задан
  • 402 просмотра
Пригласить эксперта
Ответы на вопрос 1
@voleg4u
http://www.voleg.info/
Директива старая и не используется.
В следующих версиях присутствие этой директивы будет считаться за ошибку
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы