View Single Post
Old 20th November 2012, 10:06
pvanthony pvanthony is offline
Join Date: Jun 2012
Location: Singapore
Posts: 40
Thanks: 6
Thanked 5 Times in 4 Posts
Send a message via Skype™ to pvanthony


Here is my nginx config for Horde. It is working for me. Try it out. Please note that I am not an expert and also please check if the settings are ok for security.

----------------- start ------------------------
location /horde {
root /var/www/apps/;
index index.php index.html index.htm;

location ~ \.php {
fastcgi_param PHP_VALUE "cgi.fix_pathinfo=1";
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
#try_files $uri =404;
root /var/www/apps/;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

# pvanthony added this because of timeout problem when
# importing addressbook.
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;

fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;

location ~* ^/horde/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/apps/;

------------------ end ------------------------

Reply With Quote