nginx配置(2)
发布时间
阅读量:
阅读量
Server模块功能实现
鉴于此次仅涉及server模块的配置学习,文档中未包含与upstream模块相关的具体内容。在后续配置过程中,proxy_pass http:// 后所接的字段,即为在配置文件中定义的upstream名称。
server {
listen 80;
listen 443 ssl;
ssl_certificate /app/tengine/conf/key/test.pem;
ssl_certificate_key /app/tengine/conf/key/test.key;
add_header Cache-Control no-cache;
add_header Cache-Control private;
add_header X-Frame-Options SAMEORIGIN;
server_name localhost;
location /status {
check_status;
access_log off;
}
location ^~ /stock {
proxy_pass ht
全部评论 (0)
还没有任何评论哟~
