# For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes 1; error_log /var/opt/rh/rh-nginx18/log/nginx/error.log; #error_log /var/opt/rh/rh-nginx18/log/nginx/error.log notice; #error_log /var/opt/rh/rh-nginx18/log/nginx/error.log info; pid /var/opt/rh/rh-nginx18/run/nginx/nginx.pid; events { worker_connections 1024; } http { include /etc/opt/rh/rh-nginx18/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/opt/rh/rh-nginx18/log/nginx/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/opt/rh/rh-nginx18/nginx/conf.d/*.conf; server { listen 80; server_name localhost; root /usr/share/tuleap/src/www; index index.php; location / { index index.php; } location /api { try_files $uri $uri/ /api/index.php?$args; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } }