将URL映射到其他目录
来自Ubuntu中文
将URL映射到其他目录
sudo gedit /etc/apache2/conf.d/alias
- 在新增的文件内加入下面这几行
Alias /URL-path /location_of_folder/ <Directory /location_of_folder/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
- 保存编辑过的文件 (范 例)
sudo /etc/init.d/apache2 restart