Hello,
I am trying to setup joomla3 with nginx in a jail. I keep getting an error in nginx log
I have verified that php-fpm is serving correctly with right permissions
Here is my nginx.conf
Any idea what could be wrong?
I am trying to setup joomla3 with nginx in a jail. I keep getting an error in nginx log
Code:
FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
I have verified that php-fpm is serving correctly with right permissions
Code:
# ls -la /var/run/php-fpm.sock
srw-rw---- 1 www www 0 Feb 18 19:36 /var/run/php-fpm.sock
Here is my nginx.conf
Code:
load_module /usr/local/libexec/nginx/ngx_mail_module.so;
load_module /usr/local/libexec/nginx/ngx_stream_module.so;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root /usr/local/www/joomla3;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
}
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Any idea what could be wrong?