-
Notifications
You must be signed in to change notification settings - Fork 2
Nginx
tomolimo edited this page May 2, 2017
·
1 revision
These settings are given by courtesy of Orthagh as an example of what can be done for Nginx.
server {
listen 8090;
server_name pm.mydomain.com;
root /opt/processmaker/workflow/public_html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
rewrite ^/.*/(.*)$ /glpi/app.php last;
location ~ [^/]\.php(/|$) {
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
include fastcgi.conf;
# Bypass the fact that try_files resets $fastcgi_path_info
# # see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
# allow directory index
fastcgi_index index.php;
}
}