2015-10-13 161 views
0

我在我们的RHEL6 Box中安装了Apache HTTP服务器。Apache DocumentRoot配置

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" 

我只需要提供一个FTP的页面类型,它允许在DocumentRoot directory.These托管文件的下载是我在httpd.conf已经修改了行。 当我输入主机名而不是列出DocumentRoot/hosting/apps/software-packages中的所有目录时,它将显示下面的测试页。 但我可以通过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> 

enter image description here

FTP Look a like application in java/HTML

enter image description here

此外,还有在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 

回答

1

变化 有FollowSymLinks 是 有FollowSymLinks指标