blob: de31e0ef426d217811ec252df28a9e5ef516168e (
plain)
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
|
<!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>
|