Hi, I am running my website Pakreviews.com on Nginx with Boost enabled but I am not seeing any performance difference by Enabling or Disabling boost at all. Here is my nginx configuration file, Please help me out figuring what might be the issue
server {
listen 80;
server_name pakreviews.com;
rewrite ^(.*) http://www.pakreviews.com$1 permanent;
}
server {
listen 80;
server_name www.pakreviews.com;
access_log /www/projects/pakreviews/logs/access.log;
error_log /www/projects/pakreviews/logs/error.log;
location = / {
root /www/projects/pakreviews;
index index.php;
}
location / {
root /www/projects/pakreviews;
index index.php index.html;
if (-f $request_filename) {
access_log off;
expires 30d;
break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
break;
}
}
error_page 404 /index.php;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:49232; #this must point to the socket spawn_fcgi is running on.
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/projects/pakreviews$fastcgi_script_name; # same path as above
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
location ~ /.ht {
deny all;
}
}
Comments
You're correct. That config
You're correct. That config does not serve the static files created by Boost. Take a look at this config: http://github.com/yhager/nginx_drupal