Skip to content

Commit

Permalink
Readme update: apache vhost config
Browse files Browse the repository at this point in the history
  • Loading branch information
northway committed Apr 3, 2018
1 parent 7251ca7 commit 5e69dd9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README-hu.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Kell lennie egy működő Shibboleth SP-nek és be kell kapcsolni a shib2 Apache
* `sudo a2enmod shib2`
* `sudo systemctl restart apache2`

Apache vhost konfig:
### Apache vhost konfig:

```apache
<Location /index.php/*:PluggableAuthLogin>
Expand All @@ -22,6 +22,20 @@ Apache vhost konfig:
Require valid-user
</Location>
```
### Apache vhost konfig FastCGI (FPM)

A `ShibRequestSetting applicationId default` helyett `ShibUseHeaders On` érdemes használni.

```apache
<Location /index.php>
<If "%{QUERY_STRING} =~ /title=(.+):PluggableAuthLogin/">
AuthType shibboleth
ShibRequestSetting requireSession true
Require valid-user
ShibUseHeaders On
</If>
</Location>
```

## Telepítés: PluggableAuth extension

Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Install Shibboleth Apache modul on Debian/Ubuntu linux:
* `sudo a2enmod shib2`
* `sudo systemctl restart apache2`

Apache vhost konfig:
### Apache vhost konfig

```apache
<Location /index.php/*:PluggableAuthLogin>
Expand All @@ -25,6 +25,21 @@ Apache vhost konfig:
</Location>
```

### Apache vhost konfig FastCGI (FPM)

You should replace `ShibRequestSetting applicationId default` with `ShibUseHeaders On`.

```apache
<Location /index.php>
<If "%{QUERY_STRING} =~ /title=(.+):PluggableAuthLogin/">
AuthType shibboleth
ShibRequestSetting requireSession true
Require valid-user
ShibUseHeaders On
</If>
</Location>
```

## Installation

> This extension requires the [PluggableAuth](https://www.mediawiki.org/wiki/Extension:PluggableAuth) extension and [Shibboleth](https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPConfiguration) to be installed first.
Expand Down

0 comments on commit 5e69dd9

Please sign in to comment.