wamp 添加 /wamp/www/ 以外的网页浏览

在/wamp/alias目录下默认有phpmyadmin.conf和sqlitemanager.conf

新建一个*.conf文件,比如叫做outer.conf。用记事本打开phpmyadmin.conf和outer.conf,把phpmyadmin.conf中的内容复制一份到outer.conf。把相应行修改,如下

################################

#井号后面为注释。

#设outer对应目标文件夹为e:/torrents/
Alias /outer "e:/torrents/"
# to give access to phpmyadmin from outside
# replace the lines
#
#        Order Deny,Allow
#     Deny from all
#     Allow from 127.0.0.1
#
# by
#
#        Order Allow,Deny
# Allow from all
#
<Directory "e:/torrents/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
#       Order Deny,Allow
#     Deny from all
#     Allow from 127.0.0.1
#为了使所有IP都可以访问到outer下的内容
        Order Deny,Allow
       Allow from all
</Directory>
####################

然后就可以用别的机子来访问outer下(也就是e:/torrents/下)的文件或者网页了
posted @ 2011-05-23 18:53  SmartDog  阅读(405)  评论(0编辑  收藏  举报