Возникла проблема с веб серваком. Стоит у меня nginx + php-fpm + mysql на freebsd 6.2
Сразу оговорюсь что сервер мне достался по наследству от предыдущего админа и я только что на него попал. nginx я ставил из портов, вот его конфиг
Код: Выделить всё
root@mail nginx # cat nginx.conf
#user nobody;
worker_processes 20;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
#server {
#listen 80;
#server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
#location / {
#root /usr/local/www/nginx;
#index index.html index.htm;
#}
#}
server {
listen 213.242.***.***:80;
server_name www.mail.rosenergotrans.ru mail.rosenergotrans.ru;
charset windows-1251;
access_log /usr/local/www/roundcube/webmail.access.log main;
error_log /usr/local/www/roundcube/webmail.error.log error;
location / {
root /usr/local/www/roundcube;
index index.html index.htm index.php;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
# root html;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
server {
listen 192.168.0.1:80;
server_name www.mailadmin.svel.ru mailadmin.svel.ru;
location / {
root /usr/local/www/postfixadmin;
index index.html index.htm index.php;
}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443;
# server_name localhost;
# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_timeout 5m;
# ssl_protocols SSLv2 SSLv3 TLSv1;
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
Не помагает даже так
Код: Выделить всё
root@mail nginx # /usr/local/etc/rc.d/nginx upgrade
Performing sanity check on nginx configuration:
the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
configuration file /usr/local/etc/nginx/nginx.conf test is successful
Upgrading nginx binary:
Reloading nginx config files.
Stopping old binary:
Reloading nginx config files.
Код: Выделить всё
root@mail logs # cat webmail.access.log
root@mail logs #
Подскажите люди добрые. мудрые, опытные, не дайте пропасть премии просто сисадмина )