
aggibson at cogeco
Mar 1, 2012, 7:35 PM
Post #3 of 3
(577 views)
Permalink
|
|
Re: Davical migration - "PHP calendar extensions available : Fail" with lighttpd fastcgi
[In reply to]
|
|
Michael Rasmussen wrote: > On Wed, 22 Feb 2012 16:37:17 -0500 > Drew Gibson<aggibson [at] cogeco> wrote: > >> "PHP_FCGI_PASSHEADER" => "Authorization" ) but I'm back to 401 errors. >> >> > I think this needs to be done manually: > add_header "DAV" "1, 2, 3, access-control, calendar-access, > calendar-schedule, extended-mkcol, calendar-proxy, bind, addressbook, > calendar-auto-schedule" > add_header "Content-Type" 'text/calendar; charset="utf-8"' > Problem 1: Solved Thanks for the tips Michael. After much time reading and experimenting (don't tell my boss!), I'm over the first big hurdle. I'm not quite sure where to add those items for Lighttpd (are they from Nginx configs?), I did attempt variations on "pass-header" => ( "HTTP_AUTHORIZATION", "HTTP_DAV", "HTTP_CONTENT-TYPE" ) to no avail. To make a long story short, this issue is resolved and its root lay in the URL rewrite statements. I had followed examples for Davical rewrites found on the web. However, Lighty rewrites seem to be far more particular than Apache. The docs say "<regex>" => "$0" means pass the whole of the original URL through. "to pass URLs through unmangled: specify "$0" as the rule target." (<http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite>) My experience is that $0 only passes the whole of the original URL unmangled if <regex> matches the whole of the URL. Anyway, this is working for me right now.. ## rewrite URLs for easy configuration of clients, iPhone, etc. url.rewrite-once = ( ## Don't rewrite the root URL. "^\/$" => "$0", ## Don't rewrite for any .php, stylesheet, script, image or (robots).txt. "^\/.+\.(php|css|js|png|gif|jpg|txt).*" => "$0", ## Rewrite for ? # "^/.well-known(.*)$" => "/caldav.php/.well-known$1", ## Rewrite for iPhone # "^/principals/users(.*)$" => "/caldav.php$1", ## Rewrite anything else to caldav.php "^/(.+)" => "/caldav.php/$1" ) I would be happy to post my configs and experience to the wiki, especially if someone can confirm in a similar environment. If things don't improve shortly, there may be a following post for Problem 2! regards, Drew ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Davical-general mailing list Davical-general [at] lists https://lists.sourceforge.net/lists/listinfo/davical-general
|