nginx搭建的cdn服务器的nginx.conf配置文件
2015-04-19 23:37
525 查看
默认的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; } } }
相关文章推荐
- nginx搭建的cdn服务器的nginx.conf配置文件
- 搭建nginx服务器及文件的配置
- 最简单的配置nginx.conf使之成为静态文件下载服务器
- nginx配置1:借助Nginx搭建反向代理服务器与缓存静态文件
- Nginx服务器配置文件nginx.conf实例详解
- nginx配置1:借助Nginx搭建反向代理服务器与缓存静态文件
- Nginx服务器配置文件nginx.conf实例详解
- nginx+ftp搭建图片服务器修改nginx 配置文件中root路径403错误
- Nginx服务器nginx.conf的配置文件说明
- 详解Nginx服务器中的nginx.conf配置文件
- (总结)Nginx配置文件nginx.conf中文详解
- 解决IE apk变成zip:Android 手机应用程序文件下载服务器Nginx+Tomcat配置解决方法
- Nginx配置文件(nginx.conf)配置详解
- nginx新建nginx_fzjh.conf文件,不使用默认配置文件
- Nginx配置文件nginx.conf中文详解
- Nginx配置文件nginx.conf中文详解(总结)
- LNMP搭建10:Nginx配置静态文件过期时间
- nginx搭建虚拟主机的配置文件方法
- nginx.conf 配置文件说明
- Nginx配置文件nginx.conf详解