qq_37645654 2021-12-01 19:01
浏览 13
已结题

nginx 转apache .24 配置文件修改问题

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 如何配置啊!
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 12月9日
    • 修改了问题 12月1日
    • 创建了问题 12月1日

    悬赏问题

    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?