Salut à tous,
en cette période de confinement, j'ai décidé de mettre en place un nextcloud pour partager avec des amis de quoi se distraire. Petit problème, je n'y arrive pas et je ne comprend pas mon erreur.
Le problème :
Nextcloud est installé, et j'arrive à me loger en admin. Sauf que lorsque je suis redirigé vers "/app/files", qui est la page par défaut, j'ai l'erreur suivante :
Je donne les informations nécessaire, et si quelqu'un voit d'où vient le problème, je le remercie d'avance de son aide![error] 844159#844159: *2769 directory index of "/usr/share/webapps/nextcloud/apps/files/" is forbidden, client: XX.XXX.XXX.XXX, server: mydomain.fr, request: "GET /apps/files/ HTTP/2.0", host: "javacrea.fr"
OS : archlinux
Nginx 1.16.1
PHP 7.4.4 avec php-fpm
Nextcloud 18.0.2
le bloc server :
pour le reste, j'ai suivi la procédure du wiki de Archlinux.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name mydomain.fr; # Path to the root of your installation root /usr/share/webapps/nextcloud/; # SSL ssl_certificate /etc/letsencrypt/live/mydomain.fr/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mydomain.fr/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/mydomain.fr/chain.pem; # security # security headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer-when-downgrade" always; add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; # . files location ~ /\.(?!well-known) { deny all; } location / { try_files $uri $uri/ /index.php; } location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; try_files $fastcgi_script_name =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; } # favicon.icolocation = /favicon.ico { log_not_found off; access_log off; } # robots.txt location = /robots.txt { log_not_found off; access_log off; } # assets, media location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { expires 7d; access_log off; } # svg, fonts location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ { add_header Access-Control-Allow-Origin "*"; expires 7d; access_log off; } # gzip gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;}
Merci d'avance!
Partager