Sat, 22 Feb 2014 14:00:30 +0100, Roland Gruber <[email protected]> :
> did you already create a /etc/nginx/conf.d/lam.nginx.conf from the
> Apache config? If yes, can you provide it?
> Nginx seems to become more and more popular. So I plan to support it
> in LAM. This will include RPM (Fedora/Suse) and DEB.
> It will take a bit of time so it is on the roadmap for version 4.7.
Here it is:
===========================
server {
server_name lam.example.com;
root /usr/share/ldap-account-manager;
index index.php;
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
===========================
Unfortunately it does require a manual editing of the server_name parameter
(equivalent to ServerName in Apache), you can't seem to put a "Location"
directive that is inherited by all hosts, like in Apache's "Alias" directive.
The most you can do is, include it in the /etc/nginx/conf.d/default.conf server
block but to do that, you have to directly edit the config file which isn't
suitable for RPM packaging.
So I had to put a lam.example.com server_name, making it not directly usable
out of the box like the Apache counterpart.
I asked the Nginx mailing list about it (just now) and Stackoverflow
(yesterday), if they offer a better solution, I'll let you know.
Doruk
--
Özgür Yazılım A.Ş. ~ #
http://www.ozguryazilim.com.tr
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public