Apache - treat url path as virtual host

前端 未结 4 1598
不知归路
不知归路 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:44

    You probably want to do something with the apache-config directives, since you're asking for a virtualhost solution. Apache can only work with virtualHosts as actual domains, as @cweiske explained.

    The solution in this case would be to either use a .htaccess file in the sub-directories you're working in, or to set up a .. block within your current (virtual-)host config.

    You could also choose to host them on different sub-domains if you per-se want to run them as VirtualHosts ('app1.domain.org')

提交回复
热议问题