Enviado em 20/01/2016 - 11:44h
Após criar um arquivo de configuração no /etc/apache2/sites-available/ chamado site-ssl que contém o seguinte conteúdo:
<VirtualHost _default_:443>
ServerAdmin master@teste.com.br
ServerName www.teste.com.br
ServerAlias teste.com.br
SSLEngine on
SSLCertificateFile /etc/ssl/teste.crt
SSLCertificateKeyFile /etc/ssl/teste.key
<DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/testeerror.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/testeaccess.log
combined
</VirtualHost>
LOGO APÓS SALVAR O ARQUIVO E DAR UM "a2ensite teste-ssl", ELE APRESENTA O SEGUINTE ERRO:
ERROR: site teste-ssl not properly enabled: /etc/apache2/sites-enable/teste-ssl is a real file, not touching it
<VirtualHost _default_:443>
ServerAdmin master@teste.com.br
ServerName www.teste.com.br
ServerAlias teste.com.br
SSLEngine on
SSLCertificateFile /etc/ssl/teste.crt
SSLCertificateKeyFile /etc/ssl/teste.key
<DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/testeerror.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/testeaccess.log
combined
</VirtualHost>
LOGO APÓS SALVAR O ARQUIVO E DAR UM "a2ensite teste-ssl", ELE APRESENTA O SEGUINTE ERRO:
ERROR: site teste-ssl not properly enabled: /etc/apache2/sites-enable/teste-ssl is a real file, not touching it