Apache HTTPD Server:显示文件夹内容

  1. 打开”httpd.conf”文件
  2. 例如:在/shared网址下公开C:/temp里的文件

Alias /shared “C:/temp”
<Directory “C:/temp”>
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
安全警告:不适当的公开文件夹内容会造成安全隐患。请使用VPN,密码保护或IP域防御等安全措施。 (请参考Apache2.2 mod_authz_host:Allow from <IP>)

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s