How to redirect different sub domain requests to different port

后端 未结 5 441
你的背包
你的背包 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:15

    Off the top of my hat:

    Listen 82
    Listen 83
    NameVirtualHost 1.2.3.4 # Use your server's IP here
    
    
    # Configure www.myexample.com here
    
    
    
    # Configure blog.myexample.com here
    
    

提交回复
热议问题