Hi list,
I was reading the davical wiki, http://wiki.davical.org/w/Apache_Config
and failed to properly configure my web-server to fulfill all my wishes.
Hopefully someone on this list can help.
What I want is two things working simultaneously, from one domain. If
not possible, I suppose I can use one option per domain.
For one, I have davical installed in a subdir, to keep things neat and
tidy. caldav.domain.tld points to /var/www/caldav.domain.tld/htdocs
davical is installed into /var/www/caldav.domain.tld/htdocs/davical
In the davical root there is a simple index.php that does a redirect to
/davical.
What I want is the traditional way to work, for backwards compatibility
and clients that are weird to configure (iOS 5 for exaple). So
https://caldav.domain.tld/davical/caldav.php/user should always work as
that is the intended way.
For clients that properly handle things, to make things easy when
configuring clients and to have things look 'neat'
https://caldav.domain.tld/user (obviously in both cases optionally
followed by /resource) should work as well.
Thirdly, I suppose optionally would be nice to have, is
https://caldav.domain.tld/davical/user
The wiki does list a configuration that would satisfy the first and
third option I believe, but because of my attempt to work in option 2 as
well, things break.
I have changed /cal to /davical where only 'cal' was found.
I have adapted
RewriteCond /usr/share/davical/htdocs/$1 !-d
to include htdocs/davical/$1 to point to the subdir
I have modified
RewriteRule ^/cal/(.*)$ /cal/caldav.php/$1 [NC,PT]
to
RewriteRule ^/(.*)$ /davical/caldav.php/$1 [NC,PT]
And this is where I think it goes bad, with it trying to rewrite
everything after a slash? (my rewriting skills are near-nonexistant)
Not only that, I assumed that the first RewriteCond would not do any
rewriting after /davical/ thus that all original queries remained fully
functional, e.g. the admin.php webinterface (There I get the following
XML error: This XML file does not appear to have any style information
associated with it. The document tree is shown below.)
And the second RewriteCond would specifically target these files (when
using https://caldav.domain.tld/admin.php?)
Finally, I find these in my ssl logs: davical: LOG: response:-->
<href>/davical/caldav.php/davical/caldav.php/oliver/</href>
Any pointers/updates to the wiki would be appreciated!
Oliver
_______________________________________________
DAViCal-dev mailing list
DAViCal-dev@lists.davical.org
http://lists.davical.org/listinfo/davical-dev
I was reading the davical wiki, http://wiki.davical.org/w/Apache_Config
and failed to properly configure my web-server to fulfill all my wishes.
Hopefully someone on this list can help.
What I want is two things working simultaneously, from one domain. If
not possible, I suppose I can use one option per domain.
For one, I have davical installed in a subdir, to keep things neat and
tidy. caldav.domain.tld points to /var/www/caldav.domain.tld/htdocs
davical is installed into /var/www/caldav.domain.tld/htdocs/davical
In the davical root there is a simple index.php that does a redirect to
/davical.
What I want is the traditional way to work, for backwards compatibility
and clients that are weird to configure (iOS 5 for exaple). So
https://caldav.domain.tld/davical/caldav.php/user should always work as
that is the intended way.
For clients that properly handle things, to make things easy when
configuring clients and to have things look 'neat'
https://caldav.domain.tld/user (obviously in both cases optionally
followed by /resource) should work as well.
Thirdly, I suppose optionally would be nice to have, is
https://caldav.domain.tld/davical/user
The wiki does list a configuration that would satisfy the first and
third option I believe, but because of my attempt to work in option 2 as
well, things break.
I have changed /cal to /davical where only 'cal' was found.
I have adapted
RewriteCond /usr/share/davical/htdocs/$1 !-d
to include htdocs/davical/$1 to point to the subdir
I have modified
RewriteRule ^/cal/(.*)$ /cal/caldav.php/$1 [NC,PT]
to
RewriteRule ^/(.*)$ /davical/caldav.php/$1 [NC,PT]
And this is where I think it goes bad, with it trying to rewrite
everything after a slash? (my rewriting skills are near-nonexistant)
Not only that, I assumed that the first RewriteCond would not do any
rewriting after /davical/ thus that all original queries remained fully
functional, e.g. the admin.php webinterface (There I get the following
XML error: This XML file does not appear to have any style information
associated with it. The document tree is shown below.)
And the second RewriteCond would specifically target these files (when
using https://caldav.domain.tld/admin.php?)
Finally, I find these in my ssl logs: davical: LOG: response:-->
<href>/davical/caldav.php/davical/caldav.php/oliver/</href>
Any pointers/updates to the wiki would be appreciated!
Oliver
_______________________________________________
DAViCal-dev mailing list
DAViCal-dev@lists.davical.org
http://lists.davical.org/listinfo/davical-dev