How to redirect different sub domain requests to different port

后端 未结 5 445
你的背包
你的背包 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 08:09

    I use proxy for this type of things.

    In my example, I have apache 1.3 running on port 80, but I needed svn repository to run on apache 2.2, and I didn't want to type :82 on the end of the domain every time. So I made proxy redirection on apache 1.3 (port 80):

    
      ServerName svn.mydomain.com
      ServerAlias svn
      ServerAdmin my@email.com
    
      
        ProxyPass / http://svn:82/
      
    
    

提交回复
热议问题