Конфиг который я использую для winginx.
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid temp/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"';
include blockips.conf;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
access_log off;
server_tokens off;
gzip on;
gzip_proxied any;
gzip_min_length 1100;
gzip_http_version 1.0;
gzip_buffers 4 8k;
gzip_comp_level 5;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
client_body_buffer_size 1K;
client_header_buffer_size 1k;
client_max_body_size 100m;
large_client_header_buffers 2 1k;
client_body_timeout 10;
client_header_timeout 10;
keepalive_timeout 5 5;
send_timeout 10;
scgi_temp_path temp/uwsgi_temp 1 2;
uwsgi_temp_path temp/uwsgi_temp 1 2;
fastcgi_connect_timeout 1;
server {
listen 80;
server_name guimp.ru www.guimp.ru;
root /winginx/home/guimp.ru;
access_log logs/guimp_access.log;
access_log off;
index index.html index.htm index.php;
log_not_found off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
}
location /internal_data/ {
internal;
}
location /library/ {
internal;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\.ht {
deny all;
}
location = /stat {
stub_status on;
access_log off;
allow 1;
deny all;
}
}
server {
listen 80;
server_name retracker.local;
root /winginx/home/retracker.local;
access_log logs/retracker.local_access.log;
access_log off;
index index.html index.htm index.php;
log_not_found off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/scrape {
return 404;
}
}
server {
listen 80;
server_name retracker.guimp.ru;
root /winginx/home/retracker.guimp.ru;
access_log logs/retracker_access.log;
access_log off;
index index.html index.htm index.php;
log_not_found off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
}
server {
listen 80;
server_name *.guimp.ru;
root /winginx/home/allhost;
access_log logs/allhost_access.log;
access_log off;
index index.html index.htm index.php;
log_not_found off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name albi.guimp.ru;
root /winginx/home/albi.guimp.ru;
access_log logs/albi_access.log;
index index.html index.htm index.php;
log_not_found off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name adminer.guimp.ru;
root var/adminer;
access_log logs/adminer_access.log;
index index.html index.htm index.php;
log_not_found off;
location / {
access_log off;
allow 1;
allow 2;
deny all;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name fmanager.guimp.ru;
root var/fmanager;
access_log logs/fmanager_access.log;
index index.html index.htm index.php;
log_not_found off;
location / {
access_log off;
allow 1;
allow 2;
deny all;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Также использовал базу данных MySQL с InnoDB. Подскажите пожалуйста, как перенести без ошибок. Спасибо.
