diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
| commit | 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch) | |
| tree | 3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2021/Nginx-permission-denied.html | |
update
Diffstat (limited to 'articles/2021/Nginx-permission-denied.html')
| -rwxr-xr-x | articles/2021/Nginx-permission-denied.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/articles/2021/Nginx-permission-denied.html b/articles/2021/Nginx-permission-denied.html new file mode 100755 index 0000000..de31e0e --- /dev/null +++ b/articles/2021/Nginx-permission-denied.html @@ -0,0 +1,32 @@ +<!doctype html> +<html lang="EN"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/style.css"> + <title>Bloggings</title> + </head> + <body> + <header> + <h1>Bloggings</h1> + <a href="/index.php">Back</a> + + </header> + +<main> +<article> +<h2>Nginx permission denied</h2> +<h3>2021-04-08</h3> +<p>Ça m'a pris un moment pour comprendre. J'ai généré un rapport à partir de +<a href="https://goaccess.io">goaccess</a>, mais nginx a refusé de l'afficher. +J'ai vérifié les permissions des fichiers mais rien ne clochait. +Il s'avère que c'était SElinux. Je l'ai résolu avec :</p> +<code> +setsebool -P httpd_can_network_connect on<br> +chcon -Rt httpd_sys_content_t /path/to/webroot +</code> +</article> +</main> +<footer> +<p> </p><p>§</p></footer> +</body></html> |
