V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
indomi
V2EX  ›  Linux

请教一下关于 apache 反向代理一个二级域名连接到另一个域名要怎么修改 httpd.conf 呢?

  •  
  •   indomi · Mar 9, 2018 · 2828 views
    This topic created in 2982 days ago, the information mentioned may be changed or developed.
    我看了好多文章还是没有搞懂,试了一个修改然后重启 apache 然而还是没有卵用,请问大佬们该怎么弄呢
    <VirtualHost *>
    ServerName api.example.com
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass / https://aaaaa.com/
    ProxyPassReverse / https://aaaaa.com/
    </VirtualHost>
    请问上一段有没有问题呢,该取消注释的引用模块已经引用了
    1 replies    2018-03-10 00:32:50 +08:00
    jpengwu
        1
    jpengwu  
       Mar 10, 2018 via Android
    要是觉得该配置文件麻烦的话。
    还不如就在网站目录下写个 index,直接自动重定向。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   968 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 327ms · UTC 20:21 · PVG 04:21 · LAX 13:21 · JFK 16:21
    ♥ Do have faith in what you're doing.