Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Servidor Web Apache PDF
Servidor Web Apache PDF
INSTALACIN DE APACHE
El primer paso es, como en casi todas las ocasiones, la descarga del paquete
apache2 de nuestra distribucin (en este caso Ubuntu) de los repositorios:
apt-get install apache2
El propio apache contiene los scripts necesarios para generar los certificados de
seguridad del servidor web. Al ejecutar este script nos realizar diversas preguntas
(similar a la generacin de certificados) para poder crear dicho certificado:
apache2-ssl-certificate
# apache2-ssl-certificate
creating selfsigned certificate
replace it with one signed by a certification authority (CA)
enter your ServerName at the Common Name prompt
1/3
If you want your certificate to expire after x days call this programm
with -days x
Generating a 1024 bit RSA private key
........++++++
....................++++++
writing new private key to '/etc/apache2/ssl/apache.pem'
----You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
----Country Name (2 letter code) [GB]:ES
State or Province Name (full name) [Some-State]:Bizkaia
Locality Name (eg, city) []:Bilbo
Organization Name (eg, company; recommended) []:pfc-server
Organizational Unit Name (eg, section) []:pfc
server name (eg. ssl.domain.tld; required!!!) []:pfc-server.dyndns.org
Email Address []:nagore@abartiateam.com
/etc/apache2/sites-enabled/https
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerAdmin admin@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
2/3
3/3