a2enmod ssl
/etc/init.d/apache2 restart

openssl req -new -x509 -nodes -out /etc/apache2/ssl/beta_self.crt -keyout /etc/apache2/ssl/beta_self.key


<VirtualHost *:443>
	#Config generica
	ServerSignature Off
	ServerAdmin alberto.permuy@gmail.com
 	ServerName permuy.org	
	DocumentRoot /home/beta
	RewriteEngine On
	<Directory /home/beta>
		Options Indexes FollowSymLinks MultiViews Includes
		AllowOverride All 
		Order allow,deny
		allow from all
	</Directory>
	#Logs y cosillas
	ErrorLog /var/log/apache2/error-beta-permuy-eu.log
	LogLevel warn
	CustomLog /var/log/apache2/access-beta-permuy-eu.log combined
	#
	#SSL 
        SSLEngine On
        SSLCertificateFile    /etc/apache2/ssl/beta_self.crt
        SSLCertificateKeyFile /etc/apache2/ssl/beta_self.key
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>



Necesitamos habilitar el puerto 443TCP en el ports.conf

NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
Listen 443
</IfModule>


