0

我有 5 个网站将托管在单个专用服务器上。

### Many documents(apache2) provide help to achieve this 
site1.com > should access /var/www/html/site1
site2.com > should access /var/www/html/site2

但我想要的是下面的场景......我如何在 Apache2 中实现这个(下)?

### So for example (eg. IP:  54.33.123.21) :
54.33.123.21/site1 > should access /var/www/html/site1
54.33.123.21/site2 > should access /var/www/html/site2

我只需要使用IP。暂时没有任何域名。

提前致谢。

4

1 回答 1

-1

将 Apache 服务器 DocumentRoot 设置为 /var/www/html 并且......就是这样。

于 2016-05-06T11:07:09.867 回答