【发布时间】:2011-02-21 04:35:33
【问题描述】:
我只想让 apache 服务器服务
/var/www/ 目录
现在它从目录为我在系统上的所有文件提供服务
"/"
我试图编辑放在 /etc/apache2 中的 httpd.conf 并将以下内容放入其中(最初它是空的)
<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,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.)
【问题讨论】:
标签: apache2