Commit 52abed42 authored by Xavier Guimard's avatar Xavier Guimard

Use SCRIPT_FILENAME to search index.pl (#583)

parent 51de4523
......@@ -9,7 +9,7 @@ server {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
fastcgi_param LLTYPE auth;
fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.*\.pl)(/.+)$;
}
......
......@@ -29,20 +29,20 @@ override_dh_auto_build:
override_dh_auto_install:
$(MAKE) install install_fr_doc_site \
DESTDIR=$(CURDIR)/debian/tmp \
PREFIX=/usr/ \
PREFIX=/usr \
LMPREFIX=/usr/share/lemonldap-ng/ \
BINDIR=$(LMSHAREDIR)/bin/ \
BINDIR=$(LMSHAREDIR)/bin \
SBINDIR=/usr/sbin \
FASTCGISOCKDIR=/var/run/llng-fastcgi-server \
DOCUMENTROOT=$(LMVARDIR) \
EXAMPLESDIR=/examples/ \
HANDLERDIR=$(LMVARDIR)/handler/ \
PORTALSKINSDIR=$(LMSHAREDIR)/portal-skins/ \
MANAGERDIR=$(LMSHAREDIR)/manager/ \
EXAMPLESDIR=/examples \
HANDLERDIR=$(LMVARDIR)/handler \
PORTALSKINSDIR=$(LMSHAREDIR)/portal-skins \
MANAGERDIR=$(LMSHAREDIR)/manager \
STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
TOOLSDIR=$(LMSHAREDIR)/ressources/ \
CONFDIR=/etc/lemonldap-ng/ \
CRONDIR=/etc/cron.d/ \
TOOLSDIR=$(LMSHAREDIR)/ressources \
CONFDIR=/etc/lemonldap-ng \
CRONDIR=/etc/cron.d \
DATADIR=$(LMVARDIR) \
APACHEUSER=www-data \
APACHEGROUP=www-data \
......
......@@ -45,7 +45,7 @@ my %builder = (
require CGI::Emulate::PSGI;
require CGI::Compile;
return sub {
my $script = $_[0]->{SCRIPT_NAME};
my $script = $_[0]->{SCRIPT_FILENAME};
return $_apps{$script}->(@_) if ( $_apps{$script} );
$_apps{$script} =
CGI::Emulate::PSGI->handler( CGI::Compile->compile($script) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment