LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: 风中追风

httpd

[复制链接]
发表于 2003-3-7 21:18:38 | 显示全部楼层
最初由 风中追风 发布
apache安装在/usr/local/apache ,启动httpd服务是在/etc/rc.d/rc.local中加入/usr/local/apache/bin/apachectl start.并将/usr/local/apache/bin/httpd拷贝覆盖/etc/rc.d/init.d/httpd,没有对httpd.conf进行过修改,发布目录指向/var/www/html,系统启动后,有启动httpd服务,目录指向/usr/local/apache/htdocs.但而且在setup->system services里面没有httpd服务的自启动选项.这种情况下,应该怎么修改呢?



启动apache怎么要搞的那么复杂啊?
发表于 2003-3-7 22:02:49 | 显示全部楼层
修改http.config有用吗?启动都出错也~~
 楼主| 发表于 2003-3-8 22:47:32 | 显示全部楼层
搞定,修改/usr/local/apache/conf/httpd.conf(我的启动脚本就在这里,默认安装应该在/etc/init.d/httpd.conf),找到这一句Options Indexes FollowSymLinks MultiViews,在它前面加#注释掉,再找到这一句DirectoryIndex index.html
,在后面加上 index.html.var index.php,重启服务就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表