diff --git a/lam/HISTORY b/lam/HISTORY index 3c4efb22..c4525e65 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -1,4 +1,5 @@ September 2014 4.7 + - Nginx webserver support - Personal: support pager attribute (hidden by default) - renamed config/lam.conf_sample to lam.conf.sample and config.cfg_sample to config.cfg.sample - LAM Pro: diff --git a/lam/docs/manual-sources/howto.xml b/lam/docs/manual-sources/howto.xml index c7686f07..cd2001ab 100644 --- a/lam/docs/manual-sources/howto.xml +++ b/lam/docs/manual-sources/howto.xml @@ -188,8 +188,8 @@ Have fun! - Apache webserver (SSL recommended) with PHP module (PHP 5 - (>= 5.2.4) with ldap, gettext, xml, openssl and optional + Apache/Nginx webserver (SSL recommended) with PHP module + (PHP 5 (>= 5.2.4) with ldap, gettext, xml, openssl and optional mcrypt) @@ -473,6 +473,13 @@ Have fun! + +
+ Webserver configuration + + Please see the Apache or Nginx chapter. +
@@ -8681,7 +8688,7 @@ OK (10 msec) stored in the session file is also encrypted.
-
+
Apache configuration
@@ -8860,6 +8867,78 @@ OK (10 msec) </VirtualHost>
+ +
+ Nginx configuration + + There is no fully automatic setup of Nginx but LAM provides a + ready-to-use configuration file. + +
+ RPM based installations + + The RPM package has dependencies on Apache. Therefore, Nginx is + not officially supported with this installation mode. Use tar.bz2 if + you are unsure. + + However, the package also includes an Nginx configuration file. + Please include it in your server directive like this: + + server { + ... + + include /etc/ldap-account-manager/lam.nginx.conf; + + ... +} +
+ +
+ DEB based installations + + The LAM installation package ships with an Nginx configuration + file. Please include it in your server directive like this: + + server { + ... + + include /etc/ldap-account-manager/lam.nginx.conf; + + ... +} +
+ +
+ tar.bz2 based installations + + Please add the following configuration snippet to your server + directive. + + You will need to change the alias location + ("/usr/share/ldap-account-manager") and fastcgi_pass + ("/var/run/php5-fpm.sock") to match your installation. + + location /lam { + index index.html; + alias /usr/share/ldap-account-manager; + autoindex off; + + location ~ \.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + include fastcgi_params; + } + + location ~ /lam/(tmp/internal|sess|config|lib|help|locale) { + deny all; + return 403; + } + +} + +
+