Welcome! Log In Create A New Profile

Advanced

need assistance on performances problem

Posted by acognard 
need assistance on performances problem
November 01, 2011 09:17AM
Hi all,
may you help me.
I successfully install nginx on a dockstar. But accessing to my website is quiet long.

I tried many changes but unsuccessfully.

i actually have many websites under /var/www.

they are all very light, except a test website i am trying to create using prestashop : chtiloft.homeip.net/prestashop/.

my nginx conf file

user www-data www-data;
pid /var/run/nginx.pid;

worker_processes 1;
events {
worker_connections 1024;
}

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

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

sendfile on;
keepalive_timeout 65;
tcp_nopush on;
tcp_nodelay on;

gzip on;
gzip_disable "MSIE [1-6].(?!.*SV1)";
gzip_vary on;
gzip_comp_level 3;
gzip_proxied any;
gzip_buffers 16 8k;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

Tks for your help.
Arnaud
Re: need assistance on performances problem
November 01, 2011 09:21AM
more informations, i am using debian squeeze &
i forgot the /etc/nginx/sites-enabled/default-site file

server {
listen 80;
server_name localhost;
root /var/www;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

# Static
location / {
index index.html index.htm index.php;
}

# PHP scripts -> PHP-FPM server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

# Security
location ~ /\.ht {
deny all;
}

# Stuffs
location = /favicon.ico {
access_log off;
return 204;
}

location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ {
expires 30d;
access_log off;
access_log /var/log/nginx/images.access.log;
error_log /var/log/nginx/images.error.log;
#set $memcached_key $uri;
#memcached_pass 127.0.0.1:11211;
}
}

sincerly.
Arnaud



Edited 1 time(s). Last edit at 11/01/2011 09:21AM by acognard.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready