Hi,
Im new here and would like to get a little support for an ongoing issue please.
My nginx log is filled with the same error as displayed below. I receive over 100 daily.
2014/01/16 21:11:08 [error] 1334#0: *576 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 134.249.51.183, server: dnbheaven.com, request: "GET /viewforum.php?f=26 HTTP/1.0", upstream: "fastcgi://unix:/home/dnbheaven/techinfo/socks/php5-fpm.sock:", host: "dnbheaven.com", referrer: "http://dnbheaven.com/viewforum.php?f=26"
Here is my nginx conf
server {
listen 80;
client_max_body_size 1G;
charset utf-8;
root /home/dnbheaven/WWW;
index index.php index.html index.htm;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";
access_log /home/logs/dnbheaven.access.log;
error_log /home/logs/dnbheaven.error.log;
# Make site accessible from http://localhost/
server_name dnbheaven.com www.dnbheaven.com;
## redirect www to no_www
if ($host = 'www.dnbheaven.com' ) {
rewrite ^/(.*)$ http://dnbheaven.com/$1 permanent;
}
location / {
# phpbb uses index.htm
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass dnbheaven-php;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include mime.types;
}
# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.
internal;
}
# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
}
Im new here and would like to get a little support for an ongoing issue please.
My nginx log is filled with the same error as displayed below. I receive over 100 daily.
2014/01/16 21:11:08 [error] 1334#0: *576 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 134.249.51.183, server: dnbheaven.com, request: "GET /viewforum.php?f=26 HTTP/1.0", upstream: "fastcgi://unix:/home/dnbheaven/techinfo/socks/php5-fpm.sock:", host: "dnbheaven.com", referrer: "http://dnbheaven.com/viewforum.php?f=26"
Here is my nginx conf
server {
listen 80;
client_max_body_size 1G;
charset utf-8;
root /home/dnbheaven/WWW;
index index.php index.html index.htm;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";
access_log /home/logs/dnbheaven.access.log;
error_log /home/logs/dnbheaven.error.log;
# Make site accessible from http://localhost/
server_name dnbheaven.com www.dnbheaven.com;
## redirect www to no_www
if ($host = 'www.dnbheaven.com' ) {
rewrite ^/(.*)$ http://dnbheaven.com/$1 permanent;
}
location / {
# phpbb uses index.htm
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass dnbheaven-php;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include mime.types;
}
# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.
internal;
}
# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
}