How to redirect different sub domain requests to different port

后端 未结 5 442
你的背包
你的背包 2021-01-30 07:19

I have two applications, one is the www.myexample.com, another is the blog.myexample.com. I am using PHP and Apache.

Now, I want to let w

5条回答
  •  借酒劲吻你
    2021-01-30 08:13

    A more complete answer to this would be to do something like this which allow you to setup a proxy gateway which is what is loosly described above.

    ServerName localhost

    
        Order deny,allow
        Allow from localhost
    
    
    ProxyRequests           Off
    ProxyPreserveHost       On      
    
    ProxyPass               /       http://localhost:10081/
    ProxyPassReverse        /       http://localhost:10081/
    ProxyPassReverseCookiePath /    http://localhost:10081/
    

提交回复
热议问题