小编amh*_*h98的帖子

错误:站点默认 ssl 未正确启用

执行此操作时出现此错误:

amontoya@ubuntu:~/pruebas$ sudo a2ensite default-ssl
ERROR: Site default-ssl not properly enabled: /etc/apache2/sites-enabled/default-ssl.conf is a real file, not touching it
Run Code Online (Sandbox Code Playgroud)

这是我的default-ssl.conf文件:

<IfModule mod_ssl.c>
    <VirtualHost _default_:443>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled …
Run Code Online (Sandbox Code Playgroud)

shell ubuntu ssl apache2

0
推荐指数
1
解决办法
8551
查看次数

标签 统计

apache2 ×1

shell ×1

ssl ×1

ubuntu ×1