Thread: FAST CGI issue
View Single Post
Old 02-02-2010, 10:25 PM   #7
Junior Member
 
Join Date: Jan 2010
Posts: 7
jeffm is on a distinguished road
Default fastcgi_params not referenced

I was taking a look at my ngnix config file generated by ISP manager. The file does not reference the fastcgi_params config file which I believe is used for fastcgi php. I don't see any php specific parameters in my nginx config file which I am listing below. Doesn't this need to be updated to reference php directly

user www-data;
worker_processes 5;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 120;
tcp_nodelay on;



gzip on;

include /etc/nginx/sites-enabled/*;

client_max_body_size 16m;
server {
listen xx.xx.45.171:80;
server_name mysite.com www.mysite.com myweb.othersite.net;
rewrite ^(/manager/.*)$ https://$host$1 permanent;
location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) {
proxy_pass http://xx.xx.45.171:8080;
proxy_redirect http://mysite.com:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;

}
location / {
proxy_pass http://xx.xx.45.171:8080;
proxy_redirect http://mysite.com:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|av i|zip|gz|bz2?|rar)$ {
root /var/www/mysite/data/www/mysite.com;
access_log /var/www/httpd-logs/mysite.com.access.log;
error_page 404 = @fallback;
}
location @fallback {
proxy_pass http://xx.xx.45.171:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
}
jeffm is offline   Reply With Quote