您的位置:首页 > 运维架构 > Nginx

nginx搭建的cdn服务器的nginx.conf配置文件

2016-12-06 19:19 375 查看
默认的nginx.conf配置文件

worker_processes 1;
events {
worker_connections 1024;
}
http {
access_log off;
client_body_temp_path temp/client_body_temp;
fastcgi_temp_path temp/fastcgi_temp;
scgi_temp_path temp/scgi_temp;
uwsgi_temp_path temp/uwsgi_temp;
proxy_temp_path temp/proxy_temp;

proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
proxy_set_header Connection "keep-alive";

include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 10;
server {
listen 80;
location / {
proxy_pass https://test:443; }
}
server {
listen 443 ssl;
ssl_certificate cert/test.crt;
ssl_certificate_key cert/test.key;
location / {
proxy_pass https://test:443; }
}
}


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: