- 论坛徽章:
- 0
|
httpd.conf如下:
ServerTokens Prod
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 600
MaxClients 600
MaxRequestsPerChild 5000
</IfModule>
Listen 80
#LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule expires_module modules/mod_expires.so
LoadModule mime_module modules/mod_mime.so
LoadModule dir_module modules/mod_dir.so
LoadModule cache_module modules/mod_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
#LoadModule negotiation_module modules/mod_negotiation.so
#Include conf.d/*.conf
Include conf.d/php.conf
User apache
Group apache
ServerAdmin root@localhost
ServerName localhost
UseCanonicalName Off
DocumentRoot "/var/www/html/"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerSignature Off
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
error_log中无任何错误信息。
access_log也一样没有错误信息,只有启动、关闭信息
另外,selinux已经关闭,不是一样不能访问
netstat -an|grep 80
# netstat -an|grep 80
tcp 0 0 :::80 :::* LISTEN
ps ax|grep httpd
2212 ? Ss 0:00 /usr/sbin/httpd -k start
2213 ? S 0:00 /usr/sbin/httpd -k start
2214 ? S 0:00 /usr/sbin/httpd -k start
2215 ? S 0:00 /usr/sbin/httpd -k start
2216 ? S 0:00 /usr/sbin/httpd -k start
2217 ? S 0:00 /usr/sbin/httpd -k start
2218 ? S 0:00 /usr/sbin/httpd -k start
2219 ? S 0:00 /usr/sbin/httpd -k start
2220 ? S 0:00 /usr/sbin/httpd -k start
本地telnet信息:
telnet localhost 80
出现400错误
telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 (vsFTPd 2.0.5)
显示可用。但是客户端一样无法访问。
新装的服务器,大伙帮忙啊
原来是iptables 在作怪,记得默认是允许所有包进出的啊!!
[ 本帖最后由 scc_166 于 2007-11-15 17:36 编辑 ] |
|