This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:shibboleth:sp_wordpress [2022/07/04 14:44] adminjp [references] |
docpublic:systemes:shibboleth:sp_wordpress [2022/07/04 14:53] (current) adminjp [apache vhost config] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | |||
+ | ==== apache vhost config ==== | ||
+ | |||
+ | apache vhost that serves both mainsitewp and sub-blog farm's blogs, as of blog1.mainsitewp.domain.fr : | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerName mainsitewp.domain.fr | ||
+ | ServerAlias *.mainsitewp.domain.fr | ||
+ | DocumentRoot /var/www/wp | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | LogLevel warn | ||
+ | SSLEngine on | ||
+ | Include conf.d/ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | < | ||
+ | ShibRequestSetting applicationId wordpress | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== .htaccess rewrites Shibbolet.sso ==== | ||
+ | |||
+ | at the DocumentRoot of wordpress vhost, the .htaccess does the job to exclude | ||
+ | |||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteBase / | ||
+ | |||
+ | RewriteCond %{REQUEST_URI} ^/ | ||
+ | # | ||
+ | RewriteCond %{REQUEST_URI} ^/shib(.+) | ||
+ | RewriteRule . - [L] | ||
+ | |||
+ | RewriteRule ^index\.php$ - [L] | ||
+ | RewriteRule ^Shibboleth.sso(.+) - [END] | ||
+ | RewriteRule ^Shibboleth.sso/ | ||
+ | RewriteRule ^Shibboleth.sso/ | ||
+ | RewriteRule ^Shibboleth.sso/ | ||
+ | RewriteRule ^shib(.+) - [L] | ||
+ | |||
+ | # BEGIN Shibboleth | ||
+ | AuthType shibboleth | ||
+ | Require shibboleth | ||
+ | # END Shibboleth | ||
+ | </ | ||
==== wordpress farm multisite ==== | ==== wordpress farm multisite ==== | ||
- | for multisite wordpress, we need to allow shib session cookies to be allowed withing sub-domains blogs . | + | for multisite wordpress, we need to allow shib session cookies to be allowed withing sub-domains blogs (cf cookieProps= ) . |
< | < |