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 14:57] procacci@tem-tsp.eu |
docpublic:systemes:shibboleth:idpv3xc8 [2020/07/04 15:15] (current) procacci@tem-tsp.eu [proxy et TLS via apache] |
||
---|---|---|---|
Line 84: | Line 84: | ||
< | < | ||
- | [root@idpx ~]# wget https:// | + | [root@idpx ~]# wget https:// |
[root@idpx ~]# cd /opt | [root@idpx ~]# cd /opt | ||
- | [root@idpx opt]# tar xvfz / | + | [root@idpx opt]# tar xvfz / |
- | [root@idpx opt]# mv apache-tomcat-9.0.35-src/* ./tomcat/ | + | [root@idpx opt]# mv apache-tomcat-9.0.35/ |
</ | </ | ||
Line 97: | Line 98: | ||
< | < | ||
[root@idpx opt]# ls -al tomcat/ | [root@idpx opt]# ls -al tomcat/ | ||
- | total 368 | + | total 164 |
- | drwx------ | + | drwx------ 9 tomcat tomcat |
- | drwxr-xr-x | + | drwxr-xr-x |
- | -rw-r--r-- | + | -rw-r--r-- 1 tomcat tomcat |
- | -rw-r--r-- | + | -rw-r--r-- 1 tomcat tomcat |
- | -rw-r--r-- | + | -rw-r--r-- 1 tomcat tomcat |
- | drwxr-xr-x | + | -rw-r----- 1 root |
- | -rw-r--r-- 1 root | + | -rw-r----- 1 root |
- | -rw-r--r-- 1 root | + | -rw-r----- 1 root |
- | -rw-r--r-- 1 root | + | -rw-r----- 1 root |
- | drwxr-xr-x | + | -rw-r----- 1 root |
- | -rw-r--r-- 1 root | + | -rw-r----- 1 root |
- | drwxr-xr-x | + | -rw-r----- 1 root |
- | -rw-r--r-- 1 root | + | drwxr-x--- 2 root |
- | -rw-r--r-- 1 root | + | drwx------ |
- | -rw-r--r-- 1 root | + | drwxr-x--- 2 root |
- | drwxr-xr-x 3 root | + | drwxr-x--- 2 root |
- | -rw-r--r-- | + | drwxr-x--- 2 root |
- | -rw-r--r-- 1 root | + | drwxr-x--- 7 root |
- | -rw-r--r-- 1 root | + | drwxr-x--- 2 root |
- | drwxr-xr-x 15 root | + | |
- | -rw-r--r-- 1 root | + | |
- | drwxr-xr-x 24 root | + | |
- | drwxr-xr-x 7 root | + | |
</ | </ | ||
Line 184: | Line 181: | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== start ==== | ||
+ | |||
+ | < | ||
+ | [root@idpx ~]# systemctl daemon-reload | ||
+ | [root@idpx ~]# systemctl enable 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 205: | Line 255: | ||
< | < | ||
- | [root@idp34 certs]#grep ^SSL / | + | [root@idpx certs]#grep ^SSL / |
SSLCertificateFile / | SSLCertificateFile / | ||
SSLCertificateKeyFile / | SSLCertificateKeyFile / | ||
Line 214: | 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/ |