Como o título diz, estou em um sistema recém-instalado Ubuntu 16.04,
Eu executo sudo service apache2 status, ele mostra:
Active: inactive (dead) since Thu 2017-10-26 15:11:36 PDT; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 3891 ExecStop=/etc/init.d/apache2 stop (code=exited,
status=0/SUCCESS)
Process: 3873 ExecReload=/etc/init.d/apache2 reload (code=exited,
status=0/SUCCESS)
Process: 3821 ExecStart=/etc/init.d/apache2 start (code=exited,
status=0/SUCCESS)
Oct 26 15:10:50 12345server3 apache2[3821]: * Starting Apache
httpd web server apache2
Oct 26 15:10:50 12345server3 apache2[3821]: AH00558: apache2:
Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1. Set
Oct 26 15:10:51 12345server3 apache2[3821]: *
Oct 26 15:10:51 12345server3 systemd[1]: Started LSB: Apache2 web
server.
Oct 26 15:11:36 12345server3 systemd[1]: Reloading LSB: Apache2
web server.
Oct 26 15:11:36 12345server3 apache2[3873]: * Reloading Apache
httpd web server apache2
Oct 26 15:11:36 12345server3 apache2[3873]: *
Oct 26 15:11:36 12345server3 systemd[1]: Reloaded LSB: Apache2 web
server.
Oct 26 15:11:36 12345server3 apache2[3891]: * Stopping Apache
httpd web server apache2
Oct 26 15:11:36 12345server3 apache2[3891]: *
Minha configuração do vhost se parece com:
<Directory /var/www/html/fdsfdsdsa.com>
Require all granted
</Directory>
<VirtualHost *:80>
ServerName fdsfdsdsa.com
ServerAlias www.fdsfdsdsa.com
ServerAdmin [email protected]
DocumentRoot /var/www/html/fdsfdsdsa.com
ErrorLog /var/www/html/fdsfdsdsa.com/logs/error.log
CustomLog /var/www/html/fdsfdsdsa.com/logs/access.log combined
<Directory /var/www/html/fdsfdsdsa.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
<Directory /var/www/html/fdsfdsdsa.com>
Require all granted
</Directory>
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/ssl/certs/fdsfdsdsa.com.crt
SSLCertificateKeyFile /etc/ssl/private/fdsfdsdsa.com.key
SSLCertificateChainFile /etc/ssl/certs/2.crt
ServerAdmin [email protected]
ServerName fdsfdsdsa.com
ServerAlias fdsfdsdsa.com #If using alternate names for a host
DocumentRoot /var/www/html/fdsfdsdsa.com
ErrorLog /var/www/html/fdsfdsdsa.com/logs/errorssl.log
CustomLog /var/www/html/fdsfdsdsa.com/logs/accessssl.log combined
<Directory /var/www/html/fdsfdsdsa.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Não consigo ter uma ideia de onde está o problema, fiz recentemente o certificado, coloquei-os na pasta certa e, desde que eu a2ensite este site SSL, o Apache2 desliga imediatamente
o log de erros mostra: 'AH00016: Falha na configuração' apenas isto
se eu desabilitar o site SSL, outros sites funcionarão perfeitamente
Qualquer pessoa que pudesse ajudar ou ter ideias seria apreciada.
Responder1
Provavelmente, este é um problema com seus arquivos de certificado SSL. Você pode verificá-los com isto:http://httpd.apache.org/docs/2.4/en/ssl/ssl_faq.html#verify