[kronolith] Accessing calendar via WebDAV from nginx
Johan Huldtgren
johan+kronolith at huldtgren.com
Fri Oct 8 12:42:13 UTC 2010
> Do you have nginx set up to pass PATH_INFO to PHP?
Thank you Chuck, that was indeed what I was missing. For the archives, solution as follows:
Add the following to fastcgi_params
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
Change the php related location blocks nginx.conf
location /horde/rpc {
try_files $uri $uri/ @rpc;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param HTTPS on;
fastcgi_pass 127.0.0.1:9000;
}
location @rpc {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
}
Restart nginx and off you go.
.jh
More information about the kronolith
mailing list