Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
indomi
V2EX  ›  Linux

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

  •  
  •   indomi · Mar 9, 2018 · 2894 views
    This topic created in 3001 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   ·   5369 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:52 · PVG 16:52 · LAX 01:52 · JFK 04:52
    ♥ Do have faith in what you're doing.