[root@http ~]# vi /etc/httpd/conf/httpd.conf??
原文如下
DocumentRoot "/var/www/html"
#
# Relax access to content within /var/www.
#
<Directory "/var/www">
? ? AllowOverride None
? ? # Allow open access:
? ? Require all granted
</Directory>
# Further relax access to the default document root:
<Directory "/var/www/html">
修改为
DocumentRoot "/opt"? ? ? ? ?#这里填你要共享下载的目录
#
# Relax access to content within /var/www.
#
<Directory "/var/www">
? ? AllowOverride None
? ? # Allow open access:
? ? Require all granted
</Directory>
# Further relax access to the default document root:
<Directory "/opt">? ? ? ? ??#这里填你要共享下载的目录?