Created
April 28, 2015 15:51
-
-
Save rgarciaj/16e3b44e96b08f571713 to your computer and use it in GitHub Desktop.
Crear certificado HTTPS para Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/DOMINIO.pem -keyout /etc/apache2/ssl/DOMINIO.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:443> | |
| ServerAdmin [email protected] | |
| ServerName DOMINIO | |
| ServerAlias DOMINIO | |
| DocumentRoot /home/rocket/sites/RUTA | |
| RailsEnv development | |
| <Directory /home/rocket/sites/RUTA> | |
| Options -Indexes | |
| Options -MultiViews | |
| Order allow,deny | |
| Allow from all | |
| # This relaxes Apache security settings. | |
| # AllowOverride All | |
| # MultiViews must be turned off. | |
| # Options -MultiViews | |
| </Directory> | |
| ErrorLog /home/rocket/sites/RUTA/SITIO-error.log | |
| # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. | |
| LogLevel warn | |
| CustomLog /home/rocket/sites/RUTA/SITIO-access.log combined | |
| SSLEngine On | |
| SSLCertificateFile /etc/apache2/ssl/DOMINIO.pem | |
| SSLCertificateKeyFile /etc/apache2/ssl/DOMINIO.key | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment