...
| Bloc de code |
|---|
set $shib_backend '172.0.0.42';
location /Shibboleth.sso {
proxy_pass http://$shib_backend;
proxy_set_header Host $http_host;
}
location ~ [^/]\.php(/|$) {
set $uri_to_shib $uri;
if ($remote_addr = $shib_backend) {
set $uri_to_shib '';
}
if ($uri_to_shib = "/auth/shibboleth/index.php") {
proxy_pass http://$shib_backend;
}
proxy_set_header Host $http_host; # preserve host when going to shib backend
# standard FPM configuration
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
fastcgi_pass unix:/run/php/moodle-fpm.sock;
fastcgi_index index.php;
} |
...