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.

Revisions

  1. rgarciaj created this gist Apr 28, 2015.
    1 change: 1 addition & 0 deletions Comando
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/DOMINIO.pem -keyout /etc/apache2/ssl/DOMINIO.key
    33 changes: 33 additions & 0 deletions Virtualhost
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    <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>