中国石凳联盟 登录注册

Apache下虚拟目录的设置(Metal)

Rockage··9 回复·407 浏览

发表回复
1. 找到Apache服务器的设置文件
一般在/Apache2/conf 里,例如我的物理地址为:
C:SunlinksWebApache GroupApache2conf
文件名: httpd.conf
用记事本编辑.

2. 按F3 查找 "do not use FancyIndexing" 这句话,找到后,下面还可以找到这些内容:

Alias /icons/ "C:SunlinksWeb/Apache Group/Apache2/icons/"

SunlinksWeb/Apache Group/Apache2/icons"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all



3. 原封不动地复制以上内容,只需修改3个地方,
例如现在需要把物理地址E:Mp3虚拟为/mp3目录,则为:

Alias /mp3/ "E:Mp3/"

Mp3/"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all



其实也就是把虚拟目录的名称和物理路径修改一下,格式什么的不变,存盘,退出.

4. 重新启动Apache,有时候会失败,这时候可能需要重新启动整个Windows.

5. 用http://127.0.0.1/mp3/ 或http://localhost/mp3/ 或找个人用http://ip/mp3/测试
注意:
使用http://127.0.0.1/mp3 将会访问失败,最后的"/"号是必须的!
点赞0 收藏
忘了说,

Alias /虚拟名/ "物理路径/"



Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all



这些内容可以无限增加,如果还要继续增加另外的虚拟目录,可以在那个地方加这几行设置,需要改变的仍然是那3个地方而已
点赞0 收藏
但是我只能加一个虚拟目录。第2个就不行了,要用#分开吗? 比如:
Alias /mp3/ "D:Mp3/"

Mp3/"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all


#
Alias /video/ "E:video/"

video/"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all




点赞0 收藏
children bodom死亡金属是吧?
Being a devil is the same as being a human. We should be kind. If we are kind, we are not a devil, we are a hybrid.
点赞0 收藏

Children of Bodom is a metal band from Espoo, Finland. There is some contention regarding the bands genre classification, but in general the bands musical style can be described as a hybrid of melodic black metal, power metal, and, in later albums, melodic death metal. Their name was derived from the Lake Bodom murders

伯登湖少年是一支来自芬兰艾斯堡的重金属乐队。对于乐队的风格尚存一些争议,但大致而言,这是一支混合了旋律黑金属、力量金属以及旋律死亡金属三种风格的乐队。乐队的命名源于轰动一时的“伯登湖凶杀案”。

E文出处lastfm.com,原创友情翻译~~~哈哈

----------------------------------------------

我个人认为他们是一支改良之后的死亡金属乐队!!!其实他们和纯种死亡金属还是有非常大的区别,纯种死亡金属偏重节奏,几乎无旋律可言!接受起来相当困难,但Children of Bodom却特别倾向于旋律,其实,这正是他们这几年来异军突起的真正原因,改良后的死亡金属拥有了优美的旋律,普罗大众也很容易接受他们的音乐。他们在芬兰的定位是拥有数量庞大粉丝团的大牌偶像乐队~~~
点赞0 收藏
发表回复
发表回复