【发布时间】:2012-11-13 14:58:15
【问题描述】:
谁能帮我在哪里配置我的 nginx:
/app -> 是本地的html页面
/ -> 是没有app文件夹的https服务器
以下配置对我不起作用:(
server {
listen 80;
ssl_verify_client off;
server_name localhost;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass https://xx.xx.xx.xx/;
}
location /app {
root "c:\LOCAL_PATH\app";
index index.html;
}
}
【问题讨论】:
-
您是否将 https 请求路由到同一服务器?
标签: nginx