Friday 01 May 2009 1:52:41 am
my nginx.conf like shown below:
============= begin =================
user web web;
worker_processes 15;
error_log /opt/nginx/logs/error.log;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
use epoll; }
http {
include mime.types;
default_type application/octet-stream;
include /opt/nginx/conf/extra/proxy.conf; client_max_body_size 64m;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
keepalive_timeout 65;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
server_names_hash_bucket_size 128;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any; gzip_types text/plain text/html text/css text/js application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript;
server { # ez publish;
listen 80; server_name www.buzzme.com buzzme.com; charset utf-8;
access_log /var/log/nginx/akses.log; error_log /var/log/nginx/error.log;
location / {
root /datas/web;
index index.html index.php;
include /opt/nginx/conf/rewrite.conf;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /datas/web; }
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
root /datas/web;
expires 30d; }
location ~ \.php($|/) {
set $script $uri; set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2; }
fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /datas/web$fastcgi_script_name;
fastcgi_param PATH_INFO $path_info; include /opt/nginx/conf/fastcgi_params;
}
} }
} =================== end ====================== while my rewrite.conf shown below: ====================== begin ====================
rewrite ^/content/treemenu/? /index_treemenu.php last;
rewrite ^/index_treemenu.php - last;
rewrite !\.(gif|jpe?g|png|css|js|swf|html)|var(.+)storage.pdf(.+)\.pdf$ /index.php last; break; ====================== end =====================
i tried again my config yesterday and i got a lot of strange symbols like (?) and numbers. i don't have any idea for this things. any advice?
-- thank you
|