nginx 转apache ,nginx 配置如下
location ^~ /api/ {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host 127.0.0.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
###### 对应apache 应该咋配置啊
###### 另外 nginx
location /gzry {
alias /usr/local/APP/xxx/gzry;
try_files $uri $uri/ /gzry/index.html;
index index.html index.htm;
}
location /ltxry {
alias /usr/local/APP/xxx/ltxry;
try_files $uri $uri/ /ltxry/index.html;
index index.html index.htm;
}
location / {
root /usr/local/APP/xxx/login;
index index.html index.htm;
}
这种配置多个地址的apache 如何配置啊!