# EGroupWare nginx config v.2 (without try\_files)

**URL:** <https://www.ruby-forum.com/t/egroupware-nginx-config-v-2-without-try-files/215729>\
**Category:** NGINX\
**Created:** [January 13, 2012, 9:02pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config-v-2-without-try-files/215729 "2012-01-13T21:02:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 13, 2012, 9:02pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config-v-2-without-try-files/215729/1 "2012-01-13T21:02:11Z")

</div>

In case anyone needs to setup EGroupWare [http://www.egroupware.org/](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 ~ ^(?.+.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.
