Nextcloud : Autoriser la synchronisation .htaccess

What app is this about, and its version: Nextcloud
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Old laptop or computer

Describe your issue

French below

Hello,

I wanted to get back into HTML/CSS/PHP.

So I set up the web app on my YunoHost server and I was planning to back up the site to my Nextcloud instance using rsync.

However, on some machines, the “.htaccess” file is missing. This is normal since it’s a configuration file that could modify server behavior, etc., but I’d like a workaround.

Currently, I’m renaming it to .txt in my Nextcloud folder, and when I push the changes locally, I put the period back, but this isn’t practical.

Do you have any ideas or solutions? Is it possible to restrict access to the .htaccess file to a specific directory?

The files are on an external hard drive mounted on Nextcloud.

Thank you for your help.

Bonjour,

J’ai voulu reprendre les cours de HTML / CSS / PHP.
J’ai donc mis en place la webapp sur mon serveur YunoHost et je pensais sauvegarder le site sur mon Nextcloud via rsync.

Sauf que sur certains postes j’ai le fichier « .htaccess » qui saute. Sur le principe normal car c’est un fichier de “config” qui pourrait modifier le comportement serveur etc etc mais j’aimerais avoir une astuce pour contourner cela.

Actuellement je le renomme en txt sur mon dossier Nextlcoud et quand je pousse localement les modifs je remet le . au départ mais cela n’est pas pratique.

Avez-vous une idée / solution ? est-ce que je peux autoriser le .htacces pour un répertoire en particulier ?

les fichiers sont sur un DDE monté sur Nextcloud.

Merci pour votre aide

Share relevant logs or error messages

n/a

File htaccess is specific to apache. Your app is running on yunohost, so nginx not apache.

If you still need this file to be synced, have a look at Unable to upload/sync .htaccess files - #7 by Mushimas - ℹ️ Support - Nextcloud community

1 Like

Merci pour le sujet je vais aller le lire avec interêt merci beaucoup

G

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.