Changes to "Installation sous Debian-Ubuntu" between 2020-11-10 18:55:18 and 2020-11-11 13:13:20

116
117
118
119
120
121
122
123

124
125
126
127
128

129
130
131
132
133
134
135
136
137
138
139
140
116
117
118
119
120
121
122

123
124
125
126
127

128
129
130
131
132
133
134
135
136
137
138
139
140







-
+




-
+












	listen 80; # Port d'écoute

	root /usr/share/garradin/www; # Remplacer par le chemin adéquat vers le dossier public de garradin

	server_name garradin.mondomain.tld; # Remplacer par votre nom de domaine

	location / {
		try_files $uri $uri/ /_route.php;
		try_files $uri $uri/ /_route.php?$query_args
		index index.php /_route.php;
	}

	location ~ \.php {
		try_files $uri $uri/ /_route.php;
		try_files $uri $uri/ /_route.php?$query_args
		include fastcgi.conf;
		fastcgi_pass 127.0.0.1:9000; # Si vous utilisez PHP-FPM (ou autre) en mode TCP et non sur une socket
		# fastcgi_pass unix:/var/run/php/php7.0-fpm-garradin.sock; # Si vous utilisez PHP-FPM en mode socket		
    }
}
```

Activez ensuite la config en créant un lien :

```
sudo ln -s /etc/nginx/sites-available/garradin /etc/nginx/sites-enabled/garradin
```