LuoHL's Blog 记录折腾的过程,留住时光的痕迹

apache反向代理kiftd和cloudreve

2025-05-12
LuoHuiLong

一. 首先打开防火墙并设置好端口映射

二. 打开LoadModule proxy_http_module modules/mod_proxy.so

和LoadModule proxy_http_module modules/mod_proxy_http.so模块

三. 在apache配置文件监听端口并在vhosts.conf填写如下配置信息

<VirtualHost *:8089>
    ServerName files.fork.pub
    ServerAlias 1000y.mynetgear.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass / http://192.168.1.12:8089/
    ProxyPassReverse / http://192.168.1.12:8089/
    # 其他配置...
</VirtualHost>
<VirtualHost *:15212>
    ServerName cloud.fork.pub
    ServerAlias 1000y.mynetgear.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    AllowEncodedSlashes NoDecode
    ProxyPass "/" "http://192.168.1.12:5212/" nocanon
    ProxyPassReverse / http://192.168.1.12:5212/
    # 其他配置...
</VirtualHost>

自行配置修改自己的端口和域名


目录
  • 评论