2016-10-15 19:57:04 +02:00
<!DOCTYPE html>
< html lang = "en" dir = "ltr" >
< head >
< meta charset = "utf-8" / >
< title > documentation:2.0:confignginx< / title >
< meta name = "generator" content = "DokuWiki" / >
2017-02-28 11:56:59 +01:00
< meta name = "robots" content = "index,follow" / >
2016-10-15 19:57:04 +02:00
< meta name = "keywords" content = "documentation,2.0,confignginx" / >
< link rel = "search" type = "application/opensearchdescription+xml" href = "lib/exe/opensearch.html" title = "LemonLDAP::NG" / >
< link rel = "start" href = "confignginx.html" / >
< link rel = "contents" href = "confignginx.html" title = "Sitemap" / >
< link rel = "stylesheet" type = "text/css" href = "lib/exe/css.php.t.bootstrap3.css" / >
2017-02-07 17:35:26 +01:00
<!-- //if:usedebianlibs
< link rel = "stylesheet" type = "text/css" href = "/javascript/bootstrap/css/bootstrap.min.css" / >
//elsif:useexternallibs
< link rel = "stylesheet" type = "text/css" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > < / script >
//elsif:cssminified
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.min.css" / >
//else -->
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.css" / >
<!-- //endif -->
2016-10-15 19:57:04 +02:00
< script type = "text/javascript" > / * < ! [ C D A T A [ * / v a r N S = ' d o c u m e n t a t i o n : 2 . 0 ' ; v a r J S I N F O = { " i d " : " d o c u m e n t a t i o n : 2 . 0 : c o n f i g n g i n x " , " n a m e s p a c e " : " d o c u m e n t a t i o n : 2 . 0 " } ;
/*!]]>*/< / script >
< script type = "text/javascript" charset = "utf-8" src = "lib/exe/js.php.t.bootstrap3.js" > < / script >
2017-02-07 17:35:26 +01:00
<!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery/jquery.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/jquery-2.2.0.min.js" > < / script >
//elsif:jsminified
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.min.js" > < / script >
//else -->
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.js" > < / script >
<!-- //endif -->
<!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery-ui/jquery-ui.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/ui/1.10.4/jquery-ui.min.js" > < / script >
//elsif:jsminified
< script type = "text/javascript" src = "/lib/scripts/jquery-ui.min.js" > < / script >
//else -->
< script type = "text/javascript" src = "/lib/scripts/jquery-ui.js" > < / script >
<!-- //endif -->
2016-10-15 19:57:04 +02:00
< / head >
< body >
< div class = "dokuwiki export container" >
<!-- TOC START -->
< div id = "dw__toc" >
< h3 class = "toggle" > Table of Contents< / h3 >
< div >
< ul class = "toc" >
2017-02-11 11:17:16 +01:00
< li class = "level1" > < div class = "li" > < a href = "#fastcgi_server" > FastCGI server< / a > < / div >
2016-10-15 19:57:04 +02:00
< ul class = "toc" >
< li class = "level2" > < div class = "li" > < a href = "#debianubuntu" > Debian/Ubuntu< / a > < / div > < / li >
< li class = "level2" > < div class = "li" > < a href = "#red_hatcentos" > Red Hat/CentOS< / a > < / div > < / li >
2017-02-11 11:17:16 +01:00
< / ul >
< / li >
< li class = "level1" > < div class = "li" > < a href = "#files" > Files< / a > < / div >
< ul class = "toc" >
< li class = "level2" > < div class = "li" > < a href = "#debianubuntu1" > Debian/Ubuntu< / a > < / div > < / li >
< li class = "level2" > < div class = "li" > < a href = "#red_hatcentos1" > Red Hat/CentOS< / a > < / div > < / li >
2016-10-15 19:57:04 +02:00
< / ul > < / li >
< / ul >
< / div >
< / div >
<!-- TOC END -->
< h1 class = "sectionedit1" id = "deploy_nginx_configuration" > Deploy Nginx configuration< / h1 >
< div class = "level1" >
< / div >
<!-- EDIT1 SECTION "Deploy Nginx configuration" [1 - 42] -->
2017-02-11 11:17:16 +01:00
< h2 class = "sectionedit2" id = "fastcgi_server" > FastCGI server< / h2 >
< div class = "level2" >
< p >
2017-02-24 07:07:50 +01:00
To use Nginx, you must install LemonLDAP::NG FastCGI server, which is not installed by default lemonldap-ng metapackage.
2017-02-11 11:17:16 +01:00
< / p >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT2 SECTION "FastCGI server" [43 - 192] -->
2017-02-11 11:17:16 +01:00
< h3 class = "sectionedit3" id = "debianubuntu" > Debian/Ubuntu< / h3 >
< div class = "level3" >
< pre class = "code" > apt install lemonldap-ng-fastcgi-server< / pre >
< p >
Enable and start the service :
< / p >
< pre class = "code" > systemctl enable llng-fastcgi-server
systemctl start llng-fastcgi-server< / pre >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT3 SECTION "Debian/Ubuntu" [193 - 393] -->
2017-02-11 11:17:16 +01:00
< h3 class = "sectionedit4" id = "red_hatcentos" > Red Hat/CentOS< / h3 >
< div class = "level3" >
< pre class = "code" > yum install lemonldap-ng-fastcgi-server< / pre >
< p >
Enable and start the service :
< / p >
< pre class = "code" > systemctl enable llng-fastcgi-server
systemctl start llng-fastcgi-server< / pre >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT4 SECTION "Red Hat/CentOS" [394 - 595] -->
2017-02-11 11:17:16 +01:00
< h2 class = "sectionedit5" id = "files" > Files< / h2 >
2016-10-15 19:57:04 +02:00
< div class = "level2" >
< p >
With tarball installation, Nginx configuration files will be installed in < code > /usr/local/lemonldap-ng/etc/< / code > , else they are in < code > /etc/lemonldap-ng< / code > .
< / p >
< p >
You have to include them in Nginx main configuration.
< / p >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT5 SECTION "Files" [596 - 818] -->
2017-02-11 11:17:16 +01:00
< h3 class = "sectionedit6" id = "debianubuntu1" > Debian/Ubuntu< / h3 >
2016-10-15 19:57:04 +02:00
< div class = "level3" >
< p >
Link files into < code > sites-available< / code > directory (should already have been done if you used packages):
< / p >
< pre class = "code" > ln -s /etc/lemonldap-ng/handler-nginx.conf /etc/nginx/sites-available/
ln -s /etc/lemonldap-ng/manager-nginx.conf /etc/nginx/sites-available/
ln -s /etc/lemonldap-ng/portal-nginx.conf /etc/nginx/sites-available/
ln -s /etc/lemonldap-ng/test-nginx.conf /etc/nginx/sites-available/< / pre >
< p >
Enable sites:
< / p >
< pre class = "code" > ln -s /etc/nginx/sites-available/handler-nginx.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/manager-nginx.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/portal-nginx.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/test-nginx.conf /etc/nginx/sites-enabled/< / pre >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT6 SECTION "Debian/Ubuntu" [819 - 1577] -->
2017-02-11 11:17:16 +01:00
< h3 class = "sectionedit7" id = "red_hatcentos1" > Red Hat/CentOS< / h3 >
2016-10-15 19:57:04 +02:00
< div class = "level3" >
< p >
Link files directly in < code > conf.d< / code > directory:
< / p >
< pre class = "code" > ln -s /etc/lemonldap-ng/handler-nginx.conf /etc/nginx/conf.d/
ln -s /etc/lemonldap-ng/manager-nginx.conf /etc/nginx/conf.d/
ln -s /etc/lemonldap-ng/portal-nginx.conf /etc/nginx/conf.d/
ln -s /etc/lemonldap-ng/test-nginx.conf /etc/nginx/conf.d/< / pre >
< / div >
2017-02-24 07:07:50 +01:00
<!-- EDIT7 SECTION "Red Hat/CentOS" [1578 - ] --> < / div >
2016-10-15 19:57:04 +02:00
< / body >
< / html >