View Single Post
  #3  
Old 17th August 2012, 00:51
swehes swehes is offline
Junior Member
 
Join Date: Apr 2011
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The 404 comes with I try http://www.domain.com/horde

Directives for Apache I just used the howtoforge instructions on http://www.howtoforge.com/install-ho...e-through-pear

Alias /Microsoft-Server-ActiveSync /var/www/horde/rpc.php
Alias /horde /var/www/horde
<Directory /var/www/horde>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AddType application/x-httpd-php .php
php_value include_path ".:/usr/share/php"
php_value open_basedir "none"
php_value upload_tmp_dir "/var/www/horde/phptmp/"
</Directory>

Nginx directives according to http://comments.gmane.org/gmane.comp.horde.user/28055
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param HTTPS $php_https;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location /Microsoft-Server-ActiveSync {
alias /var/www/horde/rpc.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param HTTPS $php_https;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

Trying to use Roundcube directives with Horde changes:
location /horde {
root /var/www/;
index index.php index.html index.htm;
location ~ ^/horde/(.+\.php)$ {
try_files $uri =404;
root /var/www/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param HTTPS $fastcgi_https; # <-- add this line
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_script_name;
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|php ))$ {
root /var/www/;
}
}
location /webmail2 {
rewrite ^/* /horde last;
}
Reply With Quote