[英]Apache DocumentRoot Configuration
I have Apache HTTP server installed in one of our RHEL6 Box. 我在我们的RHEL6 Box之一中安装了Apache HTTP服务器。
Server version: Apache/2.2.15 (Unix)
Server built: Jul 18 2014 02:31:29
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
I just need to provide an FTP kind of page which allows downloading of the files hosted in the DocumentRoot
directory.These are the lines i have modified in the httpd.conf
. 我只需要提供一个FTP类型的页面即可下载DocumentRoot
目录中托管的DocumentRoot
这些是我在httpd.conf
修改的行。 When i enter the host name instead of listing all the directories in the DocumentRoot /hosting/apps/software-packages it is displaying the below test page. 当我输入主机名而不是列出DocumentRoot / hosting / apps / software-packages中的所有目录时,它将显示以下测试页面。 But i can access the sub directories of DocumentRoot though URL , like shown in the below screen. 但是我可以通过URL访问DocumentRoot的子目录,如下面的屏幕所示。
DocumentRoot "/hosting/apps/software-packages"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/hosting/apps/software-packages">
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
FTP Look a like application in java/HTML FTP在Java / HTML中看起来像一个应用程序
Furthermore there are no html files in var. 此外,在var中没有html文件。
$ l
total 16
drwxr-xr-x 2 root root 4096 Jul 18 2014 html
drwxr-xr-x 2 root root 4096 Jul 18 2014 cgi-bin
drwxr-xr-x 3 root root 4096 Oct 12 06:44 error
drwxr-xr-x 3 root root 4096 Oct 12 06:44 icons
DIR=/var/www
$ l html/
total 0
DIR=/var/www
将Options FollowSymLinks更改为Options FollowSymLinks索引
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.