# Nexcloud et apps pico

**URL:** <https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568>\
**Category:** Support\
**Tags:** french\
**Created:** [September 30, 2017, 8:22am UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568 "2017-09-30T08:22:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michelw1](https://forum.yunohost.org/user_avatar/forum.yunohost.org/michelw1/32/732_2.png) [@michelw1](https://forum.yunohost.org/u/michelw1)\
**Post date:** [September 30, 2017, 8:22am UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/1 "2017-09-30T08:22:58Z")

</div>

Bonjour je souhaiterais installer pico [GitHub - nextcloud/cms\_pico: 🗃 Integrate Pico CMS and let your users manage their own websites](https://github.com/nextcloud/cms_pico) comme application de Nextcloud. Est-ce que quelqu’un a déjà essayé de le faire ya-t-il des précautions particulières notamment pour nginx car il est fait mention surtout de apache dans la documentation. En vous remerciant pour votre aide.

---

<div class="post-metadata">

**Author:** ![michelw1](https://forum.yunohost.org/user_avatar/forum.yunohost.org/michelw1/32/732_2.png) [@michelw1](https://forum.yunohost.org/u/michelw1)\
**Post date:** [September 30, 2017, 4:19pm UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/2 "2017-09-30T16:19:47Z")

</div>

Bonjour,  
Je viens d’installer pico sur nextcloud et Il m’est proposé les configurations suivantes:

Votre configuration Apache:  
Choisissez la meilleure manière de lier le site web de vos utilisateurs. Copiez l’un des exemples plus bas and collez la ligne dans votre configuration Apache.

**Utiliser MOD\_PROXY :**  
[https://wendling.xyz/cloud/sites/example/](https://wendling.xyz/cloud/sites/example/)

ProxyPass /sites/ [https://wendling.xyz/cloud/index.php/apps/cms\_pico/pico/](https://wendling.xyz/cloud/index.php/apps/cms_pico/pico/)  
ProxyPassReverse /sites/ [https://wendling.xyz/cloud/index.php/apps/cms\_pico/pico/](https://wendling.xyz/cloud/index.php/apps/cms_pico/pico/)  
SSLProxyEngine on

**Utiliser MOD\_REWRITE :**  
[https://wendling.xyz/cloud/index.php/apps/cms\_pico/pico/example/](https://wendling.xyz/cloud/index.php/apps/cms_pico/pico/example/)

RewriteEngine On  
RewriteRule /sites/(.\*) [https://wendling.xyz/cloud/index.php/apps/cms\_pico/pico/$1](https://wendling.xyz/cloud/index.php/apps/cms_pico/pico/%241) [QSA,L]

**Utiliser MOD\_REWRITE et MOD\_PROXY :**  
[https://wendling.xyz/cloud/sites/example/](https://wendling.xyz/cloud/sites/example/)

RewriteEngine On  
RewriteRule /sites/(.\*) [https://wendling.xyz/cloud/index.php/apps/cms\_pico/pico/$1](https://wendling.xyz/cloud/index.php/apps/cms_pico/pico/%241) [P]  
SSLProxyEngine on

Pour ma part je souhaiterai que lorsque je tape: [https://wendling.xyz](https://wendling.xyz) j’arrive directement sur pico est-ce possible? Je suppose que la première chose à faire est sous yunohost de sélectionner nextcloud par défaut. **Mais ensuite pour que pico se lance par défaut comment faut-il faire?** Pouvez-vous m’aider à ce sujet? Comment configurer **nginx** pour réaliser cela? En vous remerciant

---

<div class="post-metadata">

**Author:** ![juliencognito](https://forum.yunohost.org/user_avatar/forum.yunohost.org/juliencognito/32/277_2.png) [@juliencognito](https://forum.yunohost.org/u/juliencognito)\
**Post date:** [September 30, 2017, 9:17pm UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/3 "2017-09-30T21:17:44Z")

</div>

Bonsoir,  
Sans connaître Pico, j’aurais plutôt installé ce cms dans une webapp (cf l’app officielle) puis géré via yunohost le moyen d’y accéder (domaine, etc). Non?

---

<div class="post-metadata">

**Author:** ![ewilly](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ewilly/32/12681_2.png) [@ewilly](https://forum.yunohost.org/u/ewilly)\
**Post date:** [October 1, 2017, 6:35pm UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/4 "2017-10-01T18:35:19Z")

</div>

Bonjour,

le plus simple est de créer une conf nginx spécifique (par ex. nextcloud\_picocms.conf -\> ne sera pas écrasée lors d’un upgrade de l’app nextcloud) avec ce contenu :  
`location /sites/ { rewrite /sites/(.*) https://$server_name/nextcloud/index.php/apps/cms_pico/pico/$1 redirect; }`

NOTA : j’ai tenté le coup avec un `proxy_pass` mais ne suis pas convaincu car l’adresse ne se maintient pas. Ca reste peut-être à être perfectionné donc si jamais voic ce qui marchait partiellement chez moi :  
`location /sites/ { rewrite /sites/(.*) /nextcloud/index.php/apps/cms_pico/pico/$1 break; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_pass https://example.com/; }`

EDIT1 : pour le proxy\_pass cela fonctionne (en fait cela était dû à un bogue de l’app et marchera avec la prochaine version de nextcloud/cms\_pico)

EDIT2 : discussion à suivre [https://github.com/nextcloud/cms\_pico/issues/24](https://github.com/nextcloud/cms_pico/issues/24)

---

<div class="post-metadata">

**Author:** ![michelw1](https://forum.yunohost.org/user_avatar/forum.yunohost.org/michelw1/32/732_2.png) [@michelw1](https://forum.yunohost.org/u/michelw1)\
**Post date:** [October 3, 2017, 7:35am UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/5 "2017-10-03T07:35:10Z")

</div>

Merci pour votre réponse je reviendrai donc sur cela lors de la prochaine mise à jour.

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [January 18, 2023, 8:15pm UTC](https://forum.yunohost.org/t/nexcloud-et-apps-pico/3568/6 "2023-01-18T20:15:17Z")

</div>

Closed on January 18, 2023, 8:15pm UTC


