Skip to content

Instantly share code, notes, and snippets.

@dmthuc
Created December 18, 2018 09:41
Show Gist options
  • Save dmthuc/909c51982034ab5a635e45bd0d2058d8 to your computer and use it in GitHub Desktop.
Save dmthuc/909c51982034ab5a635e45bd0d2058d8 to your computer and use it in GitHub Desktop.
virtual host fcgi configuration with separate access log and error log
/etc/nginx//conf.d/nginx.conf
server {
listen 9106;
error_log /var/log/nginx/thuc_test_fcgi.log;
access_log /var/log/nginx/thuc_test_fcgi_access.log;
location / {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
fastcgi_pass 127.0.0.1:9105;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment