我想有Apache服务器只服务于 在/ var/WWW /目录 现在它提供对系统所有我的文件从目录 “/”
我试图修改httpd.conf文件放置在在/ etc/apache2的,放在folllowing内容在里面(intially它是空的)Apache Web服务器的配置问题
<Directory />
Options None
AllowOverride None
</Directory>
DocumentRoot "/var/www"
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
然后保存它,重新启动Apache服务器 摆正位置在/ var/WWW的网页浏览器地址栏,它仍然显示更高层次的目录 然后我编辑的文件默认,Default-ssl的网站 - 可用文件夹 重复同样的过程
还是Apache的服务我的系统上的所有文件
2.当我尝试使用下面的命令
gedit httpd.conf
我得到的错误
gedit:2696): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)