Forum

Request for UrlToolkit rewrite for .htaccess of OwnCloud

samiux
1 February 2013, 20:26

Hiawatha version: 8.7
Operating System: Ubuntu Server 12.04 LTS
OwnCloud version : 4.5.6

Hi Hugo,

Would you please help me to rewrite the following Apache .htaccess file to UrlToolKit?

ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 512M
<IfModule env_module>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
RewriteRule ^apps/calendar/caldav.php remote.php/caldav/ [QSA,L]
RewriteRule ^apps/contacts/carddav.php remote.php/carddav/ [QSA,L]
RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
RewriteRule ^remote/(.*) remote.php [QSA,L]
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
Options -Indexes
AcceptPathInfo On


Thanks.

Samiux
Hugo Leisink
1 February 2013, 20:40
ownCloud doesn't need the URL rewriting. It has some xcache bugs though. See my last post in this topic. Please note that my post there was for 4.5.1. The latest version might be different, so check with the source file of 4.5.1 where to put the 'return false' statements.
samiux
2 February 2013, 20:00
Hi Hugo,

Just update you.

I tried to install OwnCloud 4.5.6 on Hiawatha 8.7 (no rewrite rule is required and the captioned stated "return false" is not required) successfully. However, the ajax did not work as the settings could not be changed. Meanwhile, all the apps cannot be enabled or disabled via Firefox 18.0.1. The OwnCloud did not work properly. I give up and installed Apache instead. But I would like Hiawatha can be replaced it.

If you have spare time, I would be very happy if you can take a look into it.

Samiux
Hugo Leisink
2 February 2013, 23:12
The problem here lies with ownCloud. ownCloud has been made for Apache and tested only with Apache. You even could say that ownCloud is not a webapplication, but an Apache-application. ownCloud should change, not Hiawatha. I hope you understand that changing Hiawatha because some application is Apache-only is not the right approach.
This topic has been closed.