# EGroupWare nginx config

**URL:** <https://www.ruby-forum.com/t/egroupware-nginx-config/215727>\
**Category:** NGINX\
**Created:** [January 13, 2012, 8:52pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config/215727 "2012-01-13T20:52:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 13, 2012, 8:52pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config/215727/1 "2012-01-13T20:52:13Z")

</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$fastcgi\_script\_name; }  
}

M.

---

<div class="post-metadata">

**Author:** ![larios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@larios](https://www.ruby-forum.com/u/larios)\
**Post date:** [June 10, 2013, 10:51pm UTC](https://www.ruby-forum.com/t/egroupware-nginx-config/215727/2 "2013-06-10T22:51:59Z")

</div>

Hello Mark,

I had Egroupware on Apache2 and have everything now on Nginx  
Everything works fine. Exept…  
The filemanager:  
Ik can upload files en see an icon wich “proofs” that the file arrived  
on  
the server.  
But when I click on the link of that file, i get an error:  
404 Not Found  
nginx/1.2.6 (Ubuntu)

Does this work on your situation?

Freerk Jongsma

Posted at Nginx Forum:

> **[Re: EGroupWare nginx config](https://forum.nginx.org/read.php?2,221202,240012#msg-240012)**
>
> 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;
