summarylogtreecommitdiffstats
path: root/nginx-qaratms.conf
blob: c4c7c9864b361c16a60643f7d703c4f01d1856a6 (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
    server {
	listen		80;
#	server_name	localhost;

	index		index.html index.php;

	error_log	/var/log/nginx/error.log;
	access_log	/var/log/nginx/access.log;
	root 		/opt/QaraTMS/public;

	location / {
	    try_files 		$uri /index.php;
	    # kill cache
	    add_header		Last-Modified $date_gmt;
	    add_header		Cache-Control 'no-store, no-cache';
	    if_modified_since	off;
	    expires		off;
	    etag		off;
	}

	location ~ \.php$ {
	    try_files 		$uri =404;
	    fastcgi_split_path_info ^(.+\.php)(/.+)$;
	    fastcgi_pass 	unix:/run/php-fpm/php-fpm-qaratms.sock;
	    fastcgi_index 	index.php;
	    include 		/etc/nginx/fastcgi_params;
	    fastcgi_param 	SCRIPT_FILENAME $document_root$fastcgi_script_name;
	    fastcgi_param 	PATH_INFO $fastcgi_path_info;
	}
    }