This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:shibboleth:idpv3xc8 [2020/06/04 19:57] procacci@tem-tsp.eu [tomcat package tgz] |
docpublic:systemes:shibboleth:idpv3xc8 [2020/07/04 15:15] (current) procacci@tem-tsp.eu [proxy et TLS via apache] |
||
---|---|---|---|
Line 183: | Line 183: | ||
- | ==== enable ==== | ||
- | divers soucis de droit d' | ||
- | |||
- | < | ||
- | [root@idpx ~]# chmod 754 / | ||
- | [root@idpx ~]# chmod 754 / | ||
- | [root@idpx ~]# mkdir / | ||
- | [root@idpx ~]# chown tomcat: | ||
- | [root@idpx ~]# mkdir / | ||
- | [root@idpx ~]# chown tomcat: | ||
- | |||
- | </ | ||
==== start ==== | ==== start ==== | ||
Line 204: | Line 192: | ||
[root@idpx ~]# systemctl start tomcat.service | [root@idpx ~]# systemctl start tomcat.service | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== firewall ===== | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
+ | success | ||
+ | [root@idpx opt]# firewall-cmd --reload | ||
+ | success | ||
+ | |||
+ | [root@idpx opt]# firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
+ | success | ||
+ | [root@idpx opt]# firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
+ | success | ||
+ | [root@idpx opt]# firewall-cmd --reload | ||
+ | success | ||
+ | |||
+ | </ | ||
+ | ou plus generalement | ||
+ | |||
+ | firewall-cmd --zone=public --permanent --add-port=8080/ | ||
+ | |||
+ | |||
+ | |||
==== acces tomcat ==== | ==== acces tomcat ==== | ||
- | le serveur est maintenant | + | le serveur est maintenant |
- | http://idp3.tem-tsp.eu: | + | http://idpx.tem-tsp.eu: |
- | ==== proxy-ajp et TLS via apache ===== | + | sauf si l' |
- | mise en place d'un proxy ajp pour une gestion de TLS et ports par defaut (80/443) par apache | + | < |
+ | [root@idpx ~]# vim / | ||
+ | |||
+ | <Context antiResourceLocking=" | ||
+ | <Valve className=" | ||
+ | | ||
+ | <Manager sessionAttributeValueClassNameFilter=" | ||
+ | </ | ||
+ | </ | ||
+ | ==== proxy et TLS via apache ===== | ||
+ | |||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | |||
+ | mise en place d'un proxy pour une gestion de TLS et ports par defaut (80/443) par apache | ||
il faut installer le mod_ssl d' | il faut installer le mod_ssl d' | ||
< | < | ||
- | [root@idp34 tomcat]# yum install mod_ssl | + | [root@idpx opt]# yum install |
- | Installé : | + | |
- | | + | Total download size: 2.0 M |
+ | Is this ok [y/N]: y | ||
+ | |||
</ | </ | ||
Line 225: | Line 255: | ||
< | < | ||
- | [root@idp34 certs]#grep ^SSL / | + | [root@idpx certs]#grep ^SSL / |
SSLCertificateFile / | SSLCertificateFile / | ||
SSLCertificateKeyFile / | SSLCertificateKeyFile / | ||
Line 234: | Line 264: | ||
< | < | ||
- | [root@idp3' | + | [root@idpx ~]# cat / |
ProxyPass /idp/ ajp:// | ProxyPass /idp/ ajp:// | ||
ProxyPass /manager/ ajp:// | ProxyPass /manager/ ajp:// | ||
+ | </ | ||
+ | |||
+ | et l' | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# vim / | ||
+ | <!-- Define an AJP 1.3 Connector on port 8009 --> | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | sans l' | ||
+ | |||
+ | lancement httpd et verification de la presence du module AJP | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# systemctl start httpd.service | ||
+ | [root@idpx opt]# httpd -M | grep ajp | ||
+ | |||
+ | | ||
+ | |||
</ | </ | ||
acces sans le port 8080 : | acces sans le port 8080 : | ||
- | http://idp3.tem-tsp.eu/ | + | http://idpx.imtbstsp.eu/ |
puis en https via le proxy-ajp sans precision du port 443 | puis en https via le proxy-ajp sans precision du port 443 | ||
- | https://idp3.tem-tsp.eu/ | + | https://idpx.imtbstsp.eu/ |