Repository navigation
Description
I propose to replace the mod_env variable front_controller_active set in .htaccess with the config flag htaccess.rewriteBase for checking, if mod_rewrite is active, .
From 9.0.3 prettyURLs have to be activated manually by setting this flag anyway. (As in #24539)
In my particular case apache uses suEXEC with a whitelist for mod_env variables. This kills prettyURLs for me. I was able to circumvent this by manually setting all occurrences of front_controller_active to true (introduced in #14081).
@LukasReschke @DeepDiver1975 : You discussed using a flag in #14081, what do you think? I could create a PR.
Steps to reproduce
- setup owncloud installation with mode_rewrite active, but mod_env disabled/restricted
Expected behaviour
ownCloud using prettyURLs
Actual behaviour
Most links still use index.php, although everything can be accessed leaving it out.
Server configuration
Operating system: CentOS 6.8 (Final)
Web server: Apache 2.2.15
ownCloud version: 9.0.2 (stable)
No errors have been found.
List of activated apps:
Enabled:
- activity: 2.2.1
- calendar: 1.2.2
- comments: 0.2
- contacts: 1.3.1.0
- dav: 0.1.6
- external: 1.2
- federatedfilesharing: 0.1.0
- federation: 0.0.4
- files: 1.4.4
- files_sharing: 0.9.1
- files_texteditor: 2.1
- files_trashbin: 0.8.0
- files_versions: 1.2.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 14.5.0
- notifications: 0.2.3
- provisioning_api: 0.4.1
- systemtags: 0.2
- templateeditor: 0.1
- updatenotification: 0.1.0
Disabled:
- encryption
- files_external
- files_pdfviewer
- user_external
- user_ldap
The content of config/config.php:
{
"system": {
"instanceid": "ocztm7fxpnfx",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "\/home\/eppcloud\/ocdata",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "9.0.2.2",
"dbname": "eppcloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"loglevel": 1,
"filelocking.enabled": "true",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "\/home\/eppcloud\/.redis\/sock",
"port": 0,
"timeout": 0
},
"forcessl": true,
"mail_from_address": "oc",
"mail_smtpmode": "php",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"asset-pipeline.enabled": false,
"htaccess.RewriteBase": "\/"
}
}
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Activity
ownclouders commentedon Dec 21, 2017
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.
lock commentedon Jul 31, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.