Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:2.1:confignginx [2019/01/15 15:55] (current)
Line 1: Line 1:
 +====== Deploy Nginx configuration ======
  
 +===== FastCGI server =====
 +
 +To use Nginx, you must install LemonLDAP::​NG FastCGI server or use ''​llngapp.psgi''​ //(provided in examples)// with a PSGI server. See [[psgi|Advanced PSGI usage]].
 +
 +==== Debian/​Ubuntu ====
 +
 +<​code>​
 +apt install lemonldap-ng-fastcgi-server
 +</​code>​
 +
 +Enable and start the service :
 +<​code>​
 +systemctl enable llng-fastcgi-server
 +systemctl start llng-fastcgi-server
 +</​code>​
 +
 +==== Red Hat/CentOS ====
 +
 +<​code>​
 +yum install lemonldap-ng-fastcgi-server
 +</​code>​
 +
 +Enable and start the service :
 +<​code>​
 +systemctl enable llng-fastcgi-server
 +systemctl start llng-fastcgi-server
 +</​code>​
 +
 +===== Files =====
 +
 +With tarball installation,​ Nginx configuration files will be installed in ''/​usr/​local/​lemonldap-ng/​etc/'',​ else they are in ''/​etc/​lemonldap-ng''​.
 +
 +You have to include them in Nginx main configuration.
 +
 +==== Debian/​Ubuntu ====
 +
 +Link files into ''​sites-available''​ directory (should already have been done if you used packages):
 +<​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/​
 +</​code>​
 +
 +Enable sites:
 +<​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/​
 +</​code>​
 +
 +==== Red Hat/CentOS ====
 +
 +Link files directly in ''​conf.d''​ directory:
 +<​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/​
 +</​code>​