Apache - treat url path as virtual host

前端 未结 4 1645
不知归路
不知归路 2021-02-04 04:18

The problem is that I have only one domain name on which 3 different products need to be run (2 of them PHP based, 1 python). So what I need to do is to treat path in url as dif

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 04:42

    It's been a while since this question was asked but since I was looking for a solution for a similar kind of problem, I'll add the solution.

    This can be achieved by using Alias or AliasMatch directive. More details can be found here:

    http://httpd.apache.org/docs/2.2/mod/mod_alias.html

    Alias /first_url/ /var/www/first_url_resources
    

提交回复
热议问题