Skip to content

Instantly share code, notes, and snippets.

@rgarciaj
Created April 28, 2015 15:51
Show Gist options
  • Save rgarciaj/16e3b44e96b08f571713 to your computer and use it in GitHub Desktop.
Save rgarciaj/16e3b44e96b08f571713 to your computer and use it in GitHub Desktop.
Crear certificado HTTPS para Apache
sudo openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/DOMINIO.pem -keyout /etc/apache2/ssl/DOMINIO.key
<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