|

楼主 |
发表于 2009-3-16 22:44:58
|
显示全部楼层
Post by cliff_tian;1961976
是apache2.conf, 可以将你的配置加在这儿。
apache2.conf又包含了下面目录内的配置。
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
看看这个文件/etc/apache2/sites-enabled/000-default,里面的内容就熟悉了。
我能猜出来是apache2.conf,但我还是不清楚apache启动的时候根据哪里去找apache2.conf.
000-default也不能看出什么头绪
以下是000-default的内容
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost> |
|