View Single Post
  #4  
Old 20th June 2013, 18:47
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 50 Times in 28 Posts
Default

I have it working with nginx. I followed the tutorial for the most part. I just added in some custom nginx rules for roundcube in /etc/nginx/sites-enabled/000-ispconfig.vhost. I also installed roundcube from the source instead of with apt-get.

location /roundcube {
root /var/www/;
index index.php index.html index.htm;
location ~ ^/roundcube/(.+\.php)$ {
try_files $uri =404;
root /var/www/;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/www.sock;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/roundcube/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/;
}
}
location /webmail {
rewrite ^/* /roundcube last;
}
Reply With Quote