-
-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pretty url ( file permissions ) #29
Comments
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 |
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 |
Hi, i tried to edit the config.php, changed the permission to 664 for .htaccess, |
Yes is what i have done to make it work |
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 :) |
I tried with sudo, |
Thanks @Pe46dro you're awesome! |
If we change .htaccess to There must be another solution to this issue. |
This prevent access to .htaccess file
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! |
Hi, there is a bug with file permissions. If i try to add:
'htaccess.RewriteBase' => '/'
In
config/config.php
and then i runsudo -u www-data occ maintenance:update:htaccess
I got this message:
.htaccess has been updated
But nothing nothing changes probably because htaccess owner is root.
I suggest to edit
vm/static/setup_secure_permissions_nextcloud.sh
and editchown ${htuser}:${htgroup} ${ncpath}/.htaccess
After changing file owner pretty url works fine.
The text was updated successfully, but these errors were encountered: