Comments (11)
In my understanding the current way is more secure and it always was the recommended setting, I suppose they added the htaccess occ command later.... Although supporting the occ command for it to work like you pointed could be up for discussion @enoch85
from vm.
Maybe add the option to enable it during configuration to enable the pretty url and if the user answer yes the script will append to the .htaccess
file the configuration to remove index.php
The script should also add 'htaccess.RewriteBase' => '/'
to the configuration file.
from vm.
Hi, i tried to edit the config.php, changed the permission to 664 for .htaccess,
-rw-rw-r-- 1 root www-data 2630 Sep 1 13:57 .htaccess
run the maintenance:update:htaccess,
changed the permissions back
-rw-r--r-- 1 root www-data 2630 Sep 1 13:59 .htaccess
and now I have pretty URL also.
from vm.
Yes is what i have done to make it work
from vm.
We use a script to set secure permissions. The permissions are meant to be as secure as possible, and also recommended in the docs by both Nextcloud and ownCloud.
I'm on vacation for a few more weeks, but I'll let this be open for further discussion. Thanks for your efforts @Pe46dro :)
from vm.
But nothing nothing changes probably because htaccess owner is root.
Do you try to change the setting as root or with sudo?
This could be implemented in the startup-script, just need to find the time. Btw, the startup-script are run as root.
Another PR maybe @Pe46dro ? ;)
from vm.
I tried with sudo,
if tomorrow i have time i will try to make a PR 👍
from vm.
Thanks @Pe46dro you're awesome!
from vm.
If we change .htaccess to chown ${htuser}:${htgroup} ${ncpath}/.htaccess
Then anyone will be able to see it, which is a big security risk.
There must be another solution to this issue.
from vm.
This prevent access to .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
But if i temporary change of owner and then i run the htaccess update command should make all work fine, i have to test it and commit.
from vm.
But if i temporary change of owner and then i run the htaccess update command should make all work fine, i have to test it and commit.
Yes please. Make the change in nextcloud-startup-script.sh
Thanks!
from vm.
Related Issues (20)
- Restoring the VM on Proxmox VE 8.1.4 HOT 2
- Spamhaus Script Update URLS HOT 1
- Something got wrong during pihole-install.sh HOT 3
- Executable files are not executable (`+x`) after upgrade HOT 13
- Is it possible to bake traefik into your setup to have Nextcloud behind it? HOT 3
- Installation fails - clean ubuntu install HOT 31
- Error installing nextcloud HOT 4
- Adminer css url changed HOT 2
- Netdata installation fails HOT 6
- Adminer not being maintained anymore HOT 10
- Realtek Driver Update HOT 1
- NextCloud VM installation error -Adminer HOT 1
- Fail2ban fails on Ubuntu 24.04 HOT 2
- Installation doesn't work on Ubuntu 22.04 HOT 2
- /var/log/nextcloud/audit.log is not rotating
- Multiple available Nextcloud updates potentially lead to reboot during update process HOT 10
- Upgrade from Nextcloud 28.0.6 to 29.0.1 results in security warning HOT 18
- Cron <root@cloud> which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // HOT 7
- Apache server startup failed after running Activate TLS script (Ubuntu 22.04 / Nextcloud 29.0.2) HOT 16
- Bitwarden - Error when updating using bitwarden.sh script HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vm.