EGroupWare nginx config v.2 (without try_files)
Mark Alan
varia at e-healthexpert.org
Fri Jan 13 20:01:24 UTC 2012
In case anyone needs to setup EGroupWare http://www.egroupware.org/
over Debian 6 / Ubuntu 11.10 and Nginx 1.1.12, here is the config file
that we used:
# nginx - /etc/nginx/sites-available/egw
#
server {
listen 80;
server_name egw.localhost;
root /usr/share/egroupware;
index index.php;
client_max_body_size 8M;
rewrite ^/egroupware/(.*)$ /$1 last;
try_files $uri $uri/ /index.php?$args;
location ~ ^(?<script>.+\.php) {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/tmp/php-fpm.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_param SCRIPT_NAME $script;
}
}
M.
More information about the nginx
mailing list