Dynamic Subdomain Configuration
justin
nginx-forum at nginx.us
Tue Feb 21 01:28:01 UTC 2012
This is for Wordpress, I already have a try_files. I want to log not
found everywhere else, just not in the dynamic subdomain
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
if (!-f $document_root/$fastcgi_script_name) {
log_not_found off;
return 404;
}
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors off;
fastcgi_pass php1.local.pagelines.com:9000;
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,222733,222750#msg-222750
More information about the nginx
mailing list