Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的远程 Web 服务器上托管两个网站。它必须看起来像ip.ip.ip.ip/site1和ip.ip.ip.ip/site2。
ip.ip.ip.ip/site1
ip.ip.ip.ip/site2
如何在 Apache 和 Ubuntu 上做到这一点?
使用alias为目录起别名。
所以只需在 apache 配置文件的末尾添加如下内容:
alias /site1 /home/something/application1 alias /site2 /home/something/application2