Nextcloud Server
Go to file
Lukas Reschke 52add798d4 Do not automatically try to enable index.php-less URLs (#24539)
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-12 09:43:26 +02:00
.idea
3rdparty@16f2894332
apps Move dav app to PSR-4 (#24527) 2016-05-12 09:42:40 +02:00
build fix PHPDoc and other minor issues 2016-05-11 13:36:46 +02:00
config Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
core Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
l10n
lib Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
ocs
ocs-provider
resources
settings [tx-robot] updated from transifex 2016-05-12 02:08:58 -04:00
tests Use proper URL generation function (#24576) 2016-05-11 19:39:57 +02:00
themes
.bowerrc
.gitignore
.gitmodules
.htaccess Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
.jshintrc
.mailmap
.mention-bot Update .mention-bot for lib/public/Activity 2016-05-06 09:28:29 +02:00
.scrutinizer.yml
.tag
.travis.yml
.user.ini
AUTHORS
autotest-external.sh
autotest-hhvm.sh
autotest-js.sh
autotest.sh Use docker for mysql as well - optionally 2016-05-06 19:36:44 +02:00
bower.json
buildjsdocs.sh
composer.json
console.php
CONTRIBUTING.md
COPYING-AGPL
COPYING-README
cron.php
db_structure.xml increase token column width 2016-05-11 13:36:46 +02:00
index.html
index.php
issue_template.md
occ
public.php
README.md
remote.php Fix undefined variable $ex 2016-05-02 13:10:03 +02:00
robots.txt
status.php
version.php increase version number to trigger db migration 2016-05-11 13:36:46 +02:00

ownCloud Core

Build Status Scrutinizer Code Quality codecov.io CodeClimate Coverity Dependency Status Dependency Status

codecov.io

ownCloud gives you freedom and control over your own data. A personal cloud which runs on your own server.

Why is this so awesome?

  • 📁 Access your Data You can store your files, contacts, calendars and more on a server of your choosing.
  • 📦 Sync your Data You keep your files, contacts, calendars and more synchronized amongst your devices.
  • 🔄 Share your Data You share your data with others, and give them access to your latest photo galleries, your calendar or anything else you want them to see.
  • 🚀 Expandable with dozens of Apps ...like Calendar, Contacts, Mail or News.
  • ☁️ All Benefits of the Cloud ...on your own Server.
  • 🔒 Encryption You can encrypt data in transit with secure https connections. You can enable the encryption app to encrypt data on storage for improved security and privacy.
  • ...

Installation instructions

https://doc.owncloud.org/server/9.1/developer_manual/app/index.html

Contribution Guidelines

https://owncloud.org/contribute/

Support

Learn about the different ways you can get support for ownCloud: https://owncloud.org/support/

Get in touch

Important notice on translations

Please submit translations via Transifex: https://www.transifex.com/projects/p/owncloud/

Transifex

For more detailed information about translations: http://doc.owncloud.org/server/9.1/developer_manual/core/translation.html