Nginx in progress...

This commit is contained in:
Xavier Guimard 2016-01-29 11:09:56 +00:00
parent 40366bfed2
commit 252ef99a6b
2 changed files with 7 additions and 3 deletions

View File

@ -336,7 +336,8 @@ start_web_server: all prepare_test_server
reload_web_server:
@if [ -e e2e-tests/conf/apache2.pid ]; then \
LLNG_DEFAULTCONFFILE=`pwd`/e2e-tests/conf/lemonldap-ng.ini /usr/sbin/apache2 -d `pwd`/e2e-tests -f apache2.conf -k graceful; \
LLNG_DEFAULTCONFFILE=`pwd`/e2e-tests/conf/lemonldap-ng.ini \
/usr/sbin/apache2 -d `pwd`/e2e-tests -f apache2.conf -k graceful; \
elif [ -e e2e-tests/conf/nginx.pid ]; then \
kill -HUP `cat e2e-tests/conf/nginx.pid`; \
kill `cat e2e-tests/conf/plackup.pid` || true; \
@ -362,7 +363,8 @@ stop_web_server:
restart_web_server: start_web_server
plackup:
@/sbin/start-stop-daemon --start \
@LLNG_DEFAULTCONFFILE=`pwd`/e2e-tests/conf/lemonldap-ng.ini \
/sbin/start-stop-daemon --start \
--pidfile e2e-tests/conf/plackup.pid \
-d `pwd` -b -m \
--exec /usr/bin/plackup -- \

View File

@ -3,6 +3,7 @@ server {
server_name test1.example.com;
root /var/www/html;
# Internal authentication request
location = /lmauth {
internal;
@ -24,7 +25,8 @@ server {
# Client requests
location / {
auth_request /lmauth;
error_page 401 $upstream_http_www_authenticate;
auth_request_set $lmlocation $upstream_http_x_location;
error_page 401 $lmlocation;
try_files $uri $uri/ =404;
# Add as many 3-lines block as headers returned by configuration for this