nextcloud/core
Lukas Reschke fefb59e7d0
Do not automatically try to enable index.php-less URLs
The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur
l` entry and then derives the `RewriteBase` from it.

This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc.

This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…)

Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if
admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`.

For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master.

Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9.

Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
2016-05-10 16:49:36 +02:00
..
Command/Maintenance Do not automatically try to enable index.php-less URLs 2016-05-10 16:49:36 +02:00
ajax Generate a valid URL for link notification 2016-03-15 07:34:53 +01:00
command Make the version a string 2016-04-06 15:41:25 +02:00
controller Run on installer 2016-01-22 11:52:53 +01:00
css Keep share checkboxes together 2016-03-18 14:16:26 +01:00
doc fix difference between packaged version and master 2013-08-17 10:33:11 +02:00
fonts move font back from Light to Regular for body text on normal-res screens, fix #18954 2015-11-10 16:12:42 +01:00
img correct form of upload-white icon to be same as upload icon 2016-03-29 19:18:54 +02:00
js remember email when setting expiration date 2016-04-21 13:01:17 +02:00
l10n Backport translations to stable9 2016-03-22 13:10:33 +01:00
search Happy new year! 2016-01-12 15:02:18 +01:00
skeleton add a real examplefile instead of an .gitignore which is a bit stupid here 2013-10-04 10:21:33 +02:00
tags Happy new year! 2016-01-12 15:02:18 +01:00
templates Show release notes 2016-04-05 17:13:31 +03:00
vendor Update davclient.js for headers fix 2016-02-24 10:09:54 +01:00
application.php move lost controller to core/controller 2016-01-20 10:42:19 +01:00
register_command.php Do not automatically try to enable index.php-less URLs 2016-05-10 16:49:36 +02:00
routes.php Happy new year! 2016-01-12 15:02:18 +01:00
shipped.json Mark files_videoplayer as shipped 2016-02-11 19:06:48 +01:00
strings.php Happy new year! 2016-01-12 15:02:18 +01:00