|
203.
|
|
|
The <application>mod_ssl</application> module is available in <application>apache2-common</application> package. If you have installed this package, you can run the following command from a terminal prompt to enable the <application>mod_ssl</application> module:
|
|
|
|
O módulo <application>mod_ssl</application> está disponível no pacote <application>apache2-common</application>. Se você possuir este pacote instalado, você pode executar o comando a seguir de um prompt de terminal para ativar o módulo <application>mod_ssl</application>:
|
|
Translated and reviewed by
Yves Junqueira
|
|
|
|
Located in
../generic/serverguide/C/web-servers.xml:424(para)
|
|
204.
|
|
|
sudo a2enmod ssl
|
|
|
|
sudo a2enmod ssl
|
|
Translated and reviewed by
Lucien Rocha Lucien
|
|
|
|
Located in
serverguide/C/web-servers.xml:571(command)
|
|
205.
|
|
|
In order for <application>Apache</application> to provide HTTPS, a <emphasis>certificate</emphasis> and <emphasis>key</emphasis> file are also needed. For information on generating a key and obtaining a certificate see <xref linkend="certificates-and-security"/>
|
|
|
|
Para que o <application>Apache</application> suporte HTTPS, um arquivo de <emphasis>certificado</emphasis> e <emphasis>chave</emphasis> também serão necessários. Para mais informações de como gerar uma chave e obter um certificado veja xref linkend="certificates-and-security"/>
|
|
Translated by
Marcelo Subtil Marcal
|
|
Reviewed by
André Gondim
|
|
|
|
206.
|
|
|
To configure <application>Apache</application> for HTTPS add the following four lines to the <filename>/etc/apache2/sites-available/default</filename> file, or the configuration file for your secure virtual host. They should be placed in the <emphasis>VirtualHost</emphasis> section under the <emphasis>DocumentRoot</emphasis> line:
|
|
|
|
Para configurar o <application>Apache</application> para HTTPS adicione as quatro linhas seguintes ao arquivo <filename>/etc/apache2/sites-available/default</filename> ou ao arquivo de configuração para o seu servidor virtual seguro. Elas devem ser colocadas na seção <emphasis>VirtualHost</emphasis> sob a linha <emphasis>DocumentRoot</emphasis>:
|
|
Translated by
Filipe Rosset
|
|
Reviewed by
André Gondim
|
|
|
|
207.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
Translated and reviewed by
André Gondim
|
|
|
|
208.
|
|
|
The directories <filename>/etc/ssl/certs</filename> and <filename>/etc/ssl/private</filename> are the default locations. If you install the certificate and key in another directory make sure to change <emphasis>SSLCertificateFile</emphasis> and <emphasis>SSLCertificateKeyFile</emphasis> appropriately.
|
|
|
|
Os diretórios <filename>/etc/ssl/certs</filename> e <filename>/etc/ssl/private</filename> são caminhos padrão. Se você instalar o certificado e chave em outro diretório, certifique-se em alterar <emphasis>SSLCertificateFile</emphasis> e <emphasis>SSLCertificateKeyFile</emphasis> apropriadamente.
|
|
Translated by
Marcelo Subtil Marcal
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/web-servers.xml:593(para)
|
|
209.
|
|
|
Once you install your certificate, and configure Apache, you should restart your web server. You can run the following command at a terminal prompt to restart your web server:
|
|
|
|
Uma vez instalado seu certificado e configurado o Apache, você deve reiniciar seu servidor web. Você pode executar o seguinte comando em um terminal para reiniciar seu servidor web:
|
|
Translated by
Fabio Maximiano
|
|
Reviewed by
André Gondim
|
|
|
|
210.
|
|
|
Depending on how you obtained your certificate you may need to enter a passphrase when <application>Apache</application> starts.
|
|
|
|
Dependendo de como você tenha obtido seu certificado você pode precisar entrar com uma frase secreta quando o <application>Apache</application> iniciar.
|
|
Translated by
Fabio Maximiano
|
|
Reviewed by
André Gondim
|
|
|
|
211.
|
|
|
You can access the secure server pages by typing https://your_hostname/url/ in your browser address bar.
|
|
|
|
Você pode acessar as páginas seguras do servidor digitando https://your_hostname/url/ na barra de endereços do browser.
|
|
Translated by
Fabio Maximiano
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/web-servers.xml:617(para)
|
|
212.
|
|
|
Apache2 Documentation
|
|
|
|
Documentação do Apache2
|
|
Translated and reviewed by
Lucien Rocha Lucien
|
|
|
|
Located in
serverguide/C/web-servers.xml:492(ulink)
|