[问题]Apache 2httpd.conf的问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
头像
JCheung
帖子: 95
注册时间: 2008-08-14 0:53

[问题]Apache 2httpd.conf的问题

#1

帖子 JCheung » 2008-08-16 2:23

大家好,我是刚换到用Ubuntu的行列中的。
以前用别的版本。

我的是Server Edition

apache2目录里有个apche2.conf ,我看在unbuntu里是配置这个。
我读了一下这个文件。
发现是把httpd.conf和一些模块的配置文件引用到这里的。
我不理解的是httpd.conf是空的。
apache2.conf 文件里写的是引用所有用户的配置


请大家帮我解释下


谢谢!!
头像
skyfolly
帖子: 79
注册时间: 2008-08-04 23:27
来自: Hong Kong
联系:

#2

帖子 skyfolly » 2008-08-18 19:02

因为,所以。。。。。。。。

人家不喜欢httpd.conf了,所以就用了apache2.conf 了。
"Those who excel in beauty become vain; those who excel in strength become violent."
头像
JCheung
帖子: 95
注册时间: 2008-08-14 0:53

#3

帖子 JCheung » 2008-08-19 0:13

:ema3

楼上的兄弟,你的httpd.conf也是空的么?
头像
skyfolly
帖子: 79
注册时间: 2008-08-04 23:27
来自: Hong Kong
联系:

#4

帖子 skyfolly » 2008-08-19 13:26

JCheung 写了::ema3

楼上的兄弟,你的httpd.conf也是空的么?
谁的也一样,他们不喜欢httpd.conf
"Those who excel in beauty become vain; those who excel in strength become violent."
kelebing
帖子: 4
注册时间: 2008-09-11 20:54

#5

帖子 kelebing » 2008-09-11 21:18

我的也是空的!
ccqqwheat
帖子: 81
注册时间: 2007-10-04 18:46

#6

帖子 ccqqwheat » 2008-09-12 15:49

我的也是空的..............不习惯
头像
JCheung
帖子: 95
注册时间: 2008-08-14 0:53

#7

帖子 JCheung » 2008-09-13 1:19

ccqqwheat 写了:我的也是空的..............不习惯
同感!
改的东西挺多的。
whywhatwhenhow
帖子: 2
注册时间: 2008-11-16 11:57

Re: [问题]Apache 2httpd.conf的问题

#8

帖子 whywhatwhenhow » 2008-11-20 13:52

 我按照wiki关于8.04安装lamp的方法在8.10上安装了lamp
  我在www文件夹下建立了一个名为bob的文件夹,里面新建了index. html firefox下localhost可以输出IT WORKS
  但地址栏打入locaihost/bob就出现错误403
  Forbidden
  You don't have permission to access /bob/ on this server.
  Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80
  
  
  我用chmod755给bob加权限 也不行
  网上说在httpd.conf中把
  <Directory />
  Options FollowSymLinks
  AllowOverride None
  Order deny,allow
  deny from all
  Satisfy all
  </Directory>
  deny from all中的deny改成了allow,
  保存后重启apache
  
  
  今天我找到httpd。conf,里面是空的。就在apache2.conf中把deny改成了allow,没用。
  
  请问我该怎么做呢?
头像
hadesho
帖子: 31
注册时间: 2008-11-20 12:57

Re: [问题]Apache 2httpd.conf的问题

#9

帖子 hadesho » 2008-11-20 17:58

LZ不说我还真没留意到
弃我去者 昨日之日不可留
乱我心者 今日之日多烦忧
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

Re: [问题]Apache 2httpd.conf的问题

#10

帖子 木泥黑 » 2008-11-20 18:10

没看到apache2.conf里面有inclues吗。。想不想用随便你
不过好像有一些只能加到httpd.conf才能用
头像
ranfow
帖子: 176
注册时间: 2006-07-10 16:38
联系:

Re: [问题]Apache 2httpd.conf的问题

#11

帖子 ranfow » 2008-11-22 18:45

whywhatwhenhow 写了: 我按照wiki关于8.04安装lamp的方法在8.10上安装了lamp
  我在www文件夹下建立了一个名为bob的文件夹,里面新建了index. html firefox下localhost可以输出IT WORKS
  但地址栏打入locaihost/bob就出现错误403
  Forbidden
  You don't have permission to access /bob/ on this server.
  Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80
  
  
  我用chmod755给bob加权限 也不行
  网上说在httpd.conf中把
  <Directory />
  Options FollowSymLinks
  AllowOverride None
  Order deny,allow
  deny from all
  Satisfy all
  </Directory>
  deny from all中的deny改成了allow,
  保存后重启apache
  
  
  今天我找到httpd。conf,里面是空的。就在apache2.conf中把deny改成了allow,没用。
  
  请问我该怎么做呢?
将bob文件夹的owner设为www-data:www-data,即设为www-data组www-data用户所有试试
头像
MagicGam
帖子: 291
注册时间: 2008-07-14 16:40

Re: [问题]Apache 2httpd.conf的问题

#12

帖子 MagicGam » 2008-12-07 13:12

2楼的兄弟来自绍兴兰亭?
byg1228
帖子: 52
注册时间: 2006-10-18 0:57

Re: [问题]Apache 2httpd.conf的问题

#13

帖子 byg1228 » 2009-01-02 12:44

whywhatwhenhow 写了: 我按照wiki关于8.04安装lamp的方法在8.10上安装了lamp
  我在www文件夹下建立了一个名为bob的文件夹,里面新建了index. html firefox下localhost可以输出IT WORKS
  但地址栏打入locaihost/bob就出现错误403
  Forbidden
  You don't have permission to access /bob/ on this server.
  Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80
  
  
  我用chmod755给bob加权限 也不行
  网上说在httpd.conf中把
  <Directory />
  Options FollowSymLinks
  AllowOverride None
  Order deny,allow
  deny from all
  Satisfy all
  </Directory>
  deny from all中的deny改成了allow,
  保存后重启apache
  
  
  今天我找到httpd。conf,里面是空的。就在apache2.conf中把deny改成了allow,没用。
  
  请问我该怎么做呢?
上次由 byg1228 在 2009-01-02 22:14,总共编辑 1 次。
AMD Athlon x2 3600+
捷波悍马HAO1-GT
斯巴达克X1650GT
Ubuntu 7.04 xgl+beryl
byg1228
帖子: 52
注册时间: 2006-10-18 0:57

Re: [问题]Apache 2httpd.conf的问题

#14

帖子 byg1228 » 2009-01-02 12:52

JCheung 写了:大家好,我是刚换到用Ubuntu的行列中的。
以前用别的版本。

我的是Server Edition

apache2目录里有个apche2.conf ,我看在unbuntu里是配置这个。
我读了一下这个文件。
发现是把httpd.conf和一些模块的配置文件引用到这里的。
我不理解的是httpd.conf是空的。
apache2.conf 文件里写的是引用所有用户的配置


请大家帮我解释下


谢谢!!
这样做是把用户自己的配置单独出来,有意和系统的配置加以区分,
你要有什么样的额外配置就放在httpd.conf里,不用去修改apache2.conf
这么做很好!
AMD Athlon x2 3600+
捷波悍马HAO1-GT
斯巴达克X1650GT
Ubuntu 7.04 xgl+beryl
头像
xonorya
帖子: 24
注册时间: 2009-05-26 14:09

Re: [问题]Apache 2httpd.conf的问题

#15

帖子 xonorya » 2009-05-30 2:06

请问LZ现在您解决这个问题了吗?
小弟所9.04的系统,是个新手。可否不吝赐教!!
先谢过!! :em51 :em50 :em51 :em51 :em51
含泪播种的人,一定会含笑收获!!!
回复