vnn*_*ncn 6 apache directory ubuntu
我有一个带静态IP的Ubuntu服务器用于测试目的,我想在/ var/www /目录之外创建一个项目(例如hello-world),让我们说在这个位置(/ home/username/webroot /你好,世界/).它应该可以通过浏览器访问,如http://xxx.xxx.xxx.xxx/hello-world/我该怎么做?
我会使用别名:
Alias /hello-world /home/www/foo
<Directory "/home/www/foo">
Options -MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride all
</Directory>
Run Code Online (Sandbox Code Playgroud)