Доброго всем времени.Уважаемые гуру поглядите конфиг nginx и покажите на ошибки. система Debian.
nginx.conf
Показать
user nginx;
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 65536;
}
http {
include /etc/nginx/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 /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=cache:1024m inactive=3d max_size=300G;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 65536;
}
http {
include /etc/nginx/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 /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=cache:1024m inactive=3d max_size=300G;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
mysite
Показать
server {
listen 80;
server_name its-auto.ru;
location / {
limit_rate_after 10m;
limit_rate 300k;
proxy_pass http://www.its-auto.ru;
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 503 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
# 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 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
listen 80;
server_name its-auto.ru;
location / {
limit_rate_after 10m;
limit_rate 300k;
proxy_pass http://www.its-auto.ru;
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 503 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
# 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 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
задача разгрузить IIS и часть данных чтобы отдавалась с кеша.
захожу по ип на сервер. говорит ошибка "403 Forbidden" подскажите куда копать.