informatica:linux:apache2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:apache2 [2013/11/14 14:30] – jose | informatica:linux:apache2 [2018/02/17 19:44] (current) – javi | ||
|---|---|---|---|
| Line 267: | Line 267: | ||
| openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 | openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 | ||
| Ahora importamos el p12 en el navegador | Ahora importamos el p12 en el navegador | ||
| + | |||
| + | He tenido que añadir esto en virtualhost para que valide el certificado: | ||
| + | SSLCACertificateFile / | ||
| Ahora en el servidor configuramos apache para que pida el certificado: | Ahora en el servidor configuramos apache para que pida el certificado: | ||
| Line 657: | Line 660: | ||
| sudo apachectl graceful | sudo apachectl graceful | ||
| + | | ||
| + | ===== Habilitar campos "last modified" | ||
| + | |||
| + | En la imagen de docker por defecto NO aparecen esos atributos. Cambios: | ||
| + | |||
| + | / | ||
| + | |||
| + | Descomentar esta linea: | ||
| + | |||
| + | Include conf/ | ||
| + | | ||
| + | ===== Redirecciones ===== | ||
| + | |||
| + | * El dominio raiz (y solo el dominio raiz) se redirecciona a otra URL y se para de procesar mas reglas | ||
| + | * Se pasan todas las peticiones a un backend Tomcat | ||
| + | |||
| + | < | ||
| + | RewriteEngine on | ||
| + | RewriteRule ^/$ http:// | ||
| + | |||
| + | ProxyRequests off | ||
| + | ProxyPreserveHost on | ||
| + | ProxyPass | ||
| + | ProxyPassReverse / http:// | ||
| + | </ | ||
| + | |||
| + | ==== Herramientas online útiles ==== | ||
| + | |||
| + | * Para generar: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | * Para detectar qué regla se aplica en función de la url que se pone: | ||
| + | |||
| + | http:// | ||
| + | |||
informatica/linux/apache2.1384439452.txt.gz · Last modified: (external edit)
