initial commit
This commit is contained in:
commit
8e27e10f26
12 changed files with 202 additions and 0 deletions
21
roles/nginx/templates/glpi.site.jinja2
Normal file
21
roles/nginx/templates/glpi.site.jinja2
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name {{ nginx_site_fqdn }};
|
||||
|
||||
root /var/www/glpi/public;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ ^/index\.php$ {
|
||||
fastcgi_pass unix:/run/php/php-fpm.sock;
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue