2017-02-13 20:43:41 +01:00
|
|
|
location __PATH__ {
|
|
|
|
proxy_pass http://localhost:__PORT__;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2019-04-30 19:15:33 +02:00
|
|
|
|
2017-07-21 22:28:49 +02:00
|
|
|
client_max_body_size 100M;
|
2020-02-22 00:42:32 +01:00
|
|
|
|
|
|
|
# Use the specific path for the php file. It's more secure than global php path
|
|
|
|
location __PATH__/cas_server.php {
|
|
|
|
alias /var/www/__APP__/;
|
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
2020-11-28 17:31:45 +01:00
|
|
|
fastcgi_pass unix:/run/php7.0-fpm-__NAME__.sock;
|
2020-02-22 00:42:32 +01:00
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME cas_server.php;
|
|
|
|
}
|
2019-04-30 19:15:33 +02:00
|
|
|
}
|